pub struct PeerAuthority { /* private fields */ }Expand description
Independent peer authority. Exact storage includes its one frozen request.
Implementations§
Source§impl PeerAuthority
impl PeerAuthority
pub fn generate(invitation: Invitation) -> Result<Self>
Sourcepub fn retry(&self, invitation: Invitation) -> Result<Self>
pub fn retry(&self, invitation: Invitation) -> Result<Self>
The same installation keys with a new request sealed to invitation.
pub fn matches_invitation(&self, invitation: &Invitation) -> bool
pub fn device(&self) -> [u8; 32]
pub fn vault(&self) -> [u8; 32]
pub fn handle(&self) -> [u8; 32]
pub fn bearer(&self) -> &Secret
pub fn request(&self) -> &[u8] ⓘ
pub fn protected_storage_bytes(&self) -> Zeroizing<Vec<u8>>
pub fn from_protected_storage(raw: &[u8]) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerAuthority
impl RefUnwindSafe for PeerAuthority
impl Send for PeerAuthority
impl Sync for PeerAuthority
impl Unpin for PeerAuthority
impl UnsafeUnpin for PeerAuthority
impl UnwindSafe for PeerAuthority
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