Struct Rotation
pub struct Rotation;Expand description
The key-rotation announcement: the message a peer sends, over a session its current key authenticated, to name its successor key.
Implementations§
§impl Rotation
impl Rotation
pub fn announce(successor: &KeyMaterial) -> Vec<u8> ⓘ
pub fn announce(successor: &KeyMaterial) -> Vec<u8> ⓘ
The announcement of successor.
pub fn parse(message: &[u8]) -> Result<KeyMaterial, PairingError>
pub fn parse(message: &[u8]) -> Result<KeyMaterial, PairingError>
The successor key an announcement names.
§Errors
PairingError::Protocol when message is not an announcement.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rotation
impl RefUnwindSafe for Rotation
impl Send for Rotation
impl Sync for Rotation
impl Unpin for Rotation
impl UnsafeUnpin for Rotation
impl UnwindSafe for Rotation
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