pub struct ProjectionApplyKey { /* private fields */ }Expand description
One generation- and sequence-specific projection apply-marker key.
Implementations§
Source§impl ProjectionApplyKey
impl ProjectionApplyKey
Sourcepub fn new(
identity: ProjectionIdentity,
generation: ProjectionGeneration,
commit_sequence: CommitSequence,
) -> Self
pub fn new( identity: ProjectionIdentity, generation: ProjectionGeneration, commit_sequence: CommitSequence, ) -> Self
Constructs the exact v1 projection apply-marker key.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
Parses one exact v1 projection apply-marker key.
Sourcepub const fn identity(&self) -> &ProjectionIdentity
pub const fn identity(&self) -> &ProjectionIdentity
Returns the projection identity encoded by the key.
Sourcepub const fn generation(&self) -> ProjectionGeneration
pub const fn generation(&self) -> ProjectionGeneration
Returns the projection generation encoded by the key.
Sourcepub const fn commit_sequence(&self) -> CommitSequence
pub const fn commit_sequence(&self) -> CommitSequence
Returns the applied commit sequence encoded by the key.
Trait Implementations§
Source§impl Clone for ProjectionApplyKey
impl Clone for ProjectionApplyKey
Source§impl Debug for ProjectionApplyKey
impl Debug for ProjectionApplyKey
impl Eq for ProjectionApplyKey
Source§impl Hash for ProjectionApplyKey
impl Hash for ProjectionApplyKey
Source§impl Ord for ProjectionApplyKey
impl Ord for ProjectionApplyKey
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectionApplyKey
impl PartialEq for ProjectionApplyKey
Source§impl PartialOrd for ProjectionApplyKey
impl PartialOrd for ProjectionApplyKey
Auto Trait Implementations§
impl Freeze for ProjectionApplyKey
impl RefUnwindSafe for ProjectionApplyKey
impl Send for ProjectionApplyKey
impl Sync for ProjectionApplyKey
impl Unpin for ProjectionApplyKey
impl UnsafeUnpin for ProjectionApplyKey
impl UnwindSafe for ProjectionApplyKey
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