Struct oasis_core_runtime::consensus::state::keymanager::ImmutableState
source · pub struct ImmutableState<'a, T: ImmutableMKVS> { /* private fields */ }
Expand description
Consensus key manager state wrapper.
Implementations§
source§impl<'a, T: ImmutableMKVS> ImmutableState<'a, T>
impl<'a, T: ImmutableMKVS> ImmutableState<'a, T>
sourcepub fn new(mkvs: &'a T) -> ImmutableState<'a, T>
pub fn new(mkvs: &'a T) -> ImmutableState<'a, T>
Constructs a new ImmutableMKVS.
source§impl<'a, T: ImmutableMKVS> ImmutableState<'a, T>
impl<'a, T: ImmutableMKVS> ImmutableState<'a, T>
sourcepub fn status(&self, id: Namespace) -> Result<Option<Status>, StateError>
pub fn status(&self, id: Namespace) -> Result<Option<Status>, StateError>
Looks up a specific key manager status by its namespace identifier.
sourcepub fn statuses(&self) -> Result<Vec<Status>, StateError>
pub fn statuses(&self) -> Result<Vec<Status>, StateError>
Returns the list of all key manager statuses.
sourcepub fn master_secret(
&self,
id: Namespace,
) -> Result<Option<SignedEncryptedMasterSecret>, StateError>
pub fn master_secret( &self, id: Namespace, ) -> Result<Option<SignedEncryptedMasterSecret>, StateError>
Looks up a specific key manager master secret by its namespace identifier.
sourcepub fn ephemeral_secret(
&self,
id: Namespace,
) -> Result<Option<SignedEncryptedEphemeralSecret>, StateError>
pub fn ephemeral_secret( &self, id: Namespace, ) -> Result<Option<SignedEncryptedEphemeralSecret>, StateError>
Looks up a specific key manager ephemeral secret by its namespace identifier and epoch.
Auto Trait Implementations§
impl<'a, T> Freeze for ImmutableState<'a, T>
impl<'a, T> RefUnwindSafe for ImmutableState<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ImmutableState<'a, T>where
T: Sync,
impl<'a, T> Sync for ImmutableState<'a, T>where
T: Sync,
impl<'a, T> Unpin for ImmutableState<'a, T>
impl<'a, T> UnwindSafe for ImmutableState<'a, T>where
T: RefUnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more