pub struct SecretsSessionContext {
pub all_verifying_keys: Option<Vec<ReachableVerifyingKeys>>,
pub verifying_keys: Option<usize>,
/* private fields */
}Fields§
§all_verifying_keys: Option<Vec<ReachableVerifyingKeys>>§verifying_keys: Option<usize>Implementations§
Source§impl SecretsSessionContext
impl SecretsSessionContext
pub fn verifying_keys(&self) -> Result<&ReachableVerifyingKeys, Error>
pub fn unlocked_key_or(&self, error: Error) -> Result<&Key, Error>
pub fn set_unlocked_key(&self, value: Key) -> Result<(), Error>
pub fn salts_or(&self, error: Error) -> Result<&Salts, Error>
pub fn set_salts(&self, value: Salts) -> Result<(), Error>
pub fn attestant_verifying_keys_or( &self, error: Error, ) -> Result<&AttestantVerifyingKeys, Error>
pub fn set_attestant_verifying_keys( &self, value: AttestantVerifyingKeys, ) -> Result<(), Error>
pub fn signing_keys_or( &self, error: Error, ) -> Result<&ReachableSigningKeys, Error>
pub fn signing_keys_or_init<F>(&self, f: F) -> &ReachableSigningKeyswhere
F: FnOnce() -> ReachableSigningKeys,
Trait Implementations§
Source§impl From<SecretsSessionContext> for ()
impl From<SecretsSessionContext> for ()
Source§fn from(_: SecretsSessionContext)
fn from(_: SecretsSessionContext)
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for SecretsSessionContext
impl RefUnwindSafe for SecretsSessionContext
impl Send for SecretsSessionContext
impl Sync for SecretsSessionContext
impl Unpin for SecretsSessionContext
impl UnwindSafe for SecretsSessionContext
Blanket Implementations§
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