pub enum KeyEvent {
Install {
identity: LkIdentity,
slot: Slot,
ikm: FrameIkm,
},
Activate {
identity: LkIdentity,
slot: Slot,
ikm: FrameIkm,
},
Retire {
identity: LkIdentity,
slot: Slot,
filler: FrameIkm,
},
Forget {
identity: LkIdentity,
},
Fence {
id: FenceId,
},
Clear,
}Expand description
One key instruction for a bridge. Not Clone: IKMs are moved, never copied
implicitly.
Variants§
Install
Install a remote sender’s key at slot (I1: never the local identity).
Fields
§
identity: LkIdentityThe sender’s engine identity.
Activate
The local identity’s key: install it and switch the sender to slot.
Retire
Overwrite slot of identity with random bytes (10 s after the next activation). The JS
bridge ignores it for the local identity.
Fields
§
identity: LkIdentityThe identity.
Forget
The identity left the key group; no further keys (its slots are retired first).
Fields
§
identity: LkIdentityThe identity.
Fence
Answer Input::Installed { fence: id } when every earlier event is in effect.
Clear
Leaving: overwrite every remote slot with random bytes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for KeyEvent
impl Freeze for KeyEvent
impl Move for KeyEvent
impl RefUnwindSafe for KeyEvent
impl Send for KeyEvent
impl Sync for KeyEvent
impl Unpin for KeyEvent
impl UnsafeUnpin for KeyEvent
impl UnwindSafe for KeyEvent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more