pub struct SnapshotId(/* private fields */);Expand description
The content hash of an immutable snapshot blob.
Implementations§
Source§impl SnapshotId
impl SnapshotId
Sourcepub const fn from_bytes(bytes: [u8; 32]) -> SnapshotId
pub const fn from_bytes(bytes: [u8; 32]) -> SnapshotId
Constructs an identifier from its exact protocol bytes.
Trait Implementations§
Source§impl AsRef<[u8]> for SnapshotId
impl AsRef<[u8]> for SnapshotId
Source§impl Clone for SnapshotId
impl Clone for SnapshotId
Source§fn clone(&self) -> SnapshotId
fn clone(&self) -> SnapshotId
Returns a duplicate of the value. Read more
1.0.0 · 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 SnapshotId
impl Debug for SnapshotId
Source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for SnapshotId
impl<'bytes, Ctx> Decode<'bytes, Ctx> for SnapshotId
Source§impl Display for SnapshotId
impl Display for SnapshotId
Source§impl<Ctx> Encode<Ctx> for SnapshotId
impl<Ctx> Encode<Ctx> for SnapshotId
Source§impl FromStr for SnapshotId
impl FromStr for SnapshotId
Source§type Err = FixedIdError
type Err = FixedIdError
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<SnapshotId, <SnapshotId as FromStr>::Err>
fn from_str(value: &str) -> Result<SnapshotId, <SnapshotId as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for SnapshotId
impl Hash for SnapshotId
Source§impl Ord for SnapshotId
impl Ord for SnapshotId
Source§fn cmp(&self, other: &SnapshotId) -> Ordering
fn cmp(&self, other: &SnapshotId) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SnapshotId
impl PartialEq for SnapshotId
Source§impl PartialOrd for SnapshotId
impl PartialOrd for SnapshotId
impl Copy for SnapshotId
impl Eq for SnapshotId
impl StructuralPartialEq for SnapshotId
Auto Trait Implementations§
impl Freeze for SnapshotId
impl RefUnwindSafe for SnapshotId
impl Send for SnapshotId
impl Sync for SnapshotId
impl Unpin for SnapshotId
impl UnwindSafe for SnapshotId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RecordKey for T
impl<T> RecordKey for T
Source§fn encode_key(&self) -> Result<Vec<u8>, RecordError>
fn encode_key(&self) -> Result<Vec<u8>, RecordError>
Encodes this key into its unique durable representation.
Source§fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
fn decode_key(bytes: &[u8]) -> Result<T, RecordError>
Strictly decodes a key from its unique durable representation.
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)