pub struct ProjectionFrontierKey { /* private fields */ }Expand description
The generation-neutral control/frontier key for one projection identity.
Implementations§
Source§impl ProjectionFrontierKey
impl ProjectionFrontierKey
Sourcepub fn new(identity: ProjectionIdentity) -> Self
pub fn new(identity: ProjectionIdentity) -> Self
Constructs the exact v1 frontier/control 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 frontier/control key.
Sourcepub const fn identity(&self) -> &ProjectionIdentity
pub const fn identity(&self) -> &ProjectionIdentity
Returns the projection identity encoded by the key.
Trait Implementations§
Source§impl Clone for ProjectionFrontierKey
impl Clone for ProjectionFrontierKey
Source§impl Debug for ProjectionFrontierKey
impl Debug for ProjectionFrontierKey
impl Eq for ProjectionFrontierKey
Source§impl Hash for ProjectionFrontierKey
impl Hash for ProjectionFrontierKey
Source§impl Ord for ProjectionFrontierKey
impl Ord for ProjectionFrontierKey
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 ProjectionFrontierKey
impl PartialEq for ProjectionFrontierKey
Source§impl PartialOrd for ProjectionFrontierKey
impl PartialOrd for ProjectionFrontierKey
Auto Trait Implementations§
impl Freeze for ProjectionFrontierKey
impl RefUnwindSafe for ProjectionFrontierKey
impl Send for ProjectionFrontierKey
impl Sync for ProjectionFrontierKey
impl Unpin for ProjectionFrontierKey
impl UnsafeUnpin for ProjectionFrontierKey
impl UnwindSafe for ProjectionFrontierKey
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