pub struct VcEmulationBindings { /* private fields */ }Available on crate feature
extensions-draft-08 and crate feature virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Per-higher-level-group record of which emulation-group epoch produced the virtual-client LeafNode that was active at each recent epoch of that group.
Reuse guards must be resolved with the emulation epoch that was bound at the higher-level epoch a message was sent in, not the latest one: a delayed PrivateMessage from a past higher-level epoch has to be deprotected with the state that was active then. Entries are written at commit merge and retained for as many past epochs as the group’s message secrets store keeps, since a binding is only useful while the matching message secrets still exist.
Implementations§
Source§impl VcEmulationBindings
impl VcEmulationBindings
Sourcepub fn get(&self, epoch: GroupEpoch) -> Option<&EpochId>
pub fn get(&self, epoch: GroupEpoch) -> Option<&EpochId>
Look up the emulation epoch bound at the given higher-level epoch.
Trait Implementations§
Source§impl Clone for VcEmulationBindings
impl Clone for VcEmulationBindings
Source§fn clone(&self) -> VcEmulationBindings
fn clone(&self) -> VcEmulationBindings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VcEmulationBindings
impl Debug for VcEmulationBindings
Source§impl Default for VcEmulationBindings
impl Default for VcEmulationBindings
Source§fn default() -> VcEmulationBindings
fn default() -> VcEmulationBindings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VcEmulationBindings
impl<'de> Deserialize<'de> for VcEmulationBindings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Entity<CURRENT_VERSION> for VcEmulationBindings
Source§impl PartialEq for VcEmulationBindings
impl PartialEq for VcEmulationBindings
Source§fn eq(&self, other: &VcEmulationBindings) -> bool
fn eq(&self, other: &VcEmulationBindings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VcEmulationBindings
impl Serialize for VcEmulationBindings
impl StructuralPartialEq for VcEmulationBindings
impl VcEmulationBindings<CURRENT_VERSION> for VcEmulationBindings
Auto Trait Implementations§
impl Freeze for VcEmulationBindings
impl RefUnwindSafe for VcEmulationBindings
impl Send for VcEmulationBindings
impl Sync for VcEmulationBindings
impl Unpin for VcEmulationBindings
impl UnsafeUnpin for VcEmulationBindings
impl UnwindSafe for VcEmulationBindings
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
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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