pub struct TopologyRevision(/* private fields */);Expand description
SHA-256 revision of all transport-affecting topology material.
Implementations§
Source§impl TopologyRevision
impl TopologyRevision
Sourcepub fn new(value: impl Into<String>) -> Result<Self, IdentityError>
pub fn new(value: impl Into<String>) -> Result<Self, IdentityError>
Parses a lowercase 64-character SHA-256 revision.
Sourcepub fn from_material(material: impl AsRef<[u8]>) -> Self
pub fn from_material(material: impl AsRef<[u8]>) -> Self
Derives a deterministic revision from canonical topology material.
Trait Implementations§
Source§impl Clone for TopologyRevision
impl Clone for TopologyRevision
Source§fn clone(&self) -> TopologyRevision
fn clone(&self) -> TopologyRevision
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 TopologyRevision
impl Debug for TopologyRevision
Source§impl<'de> Deserialize<'de> for TopologyRevision
impl<'de> Deserialize<'de> for TopologyRevision
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
Source§impl Display for TopologyRevision
impl Display for TopologyRevision
Source§impl Hash for TopologyRevision
impl Hash for TopologyRevision
Source§impl Ord for TopologyRevision
impl Ord for TopologyRevision
Source§fn cmp(&self, other: &TopologyRevision) -> Ordering
fn cmp(&self, other: &TopologyRevision) -> Ordering
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
Source§impl PartialEq for TopologyRevision
impl PartialEq for TopologyRevision
Source§fn eq(&self, other: &TopologyRevision) -> bool
fn eq(&self, other: &TopologyRevision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TopologyRevision
impl PartialOrd for TopologyRevision
Source§impl Serialize for TopologyRevision
impl Serialize for TopologyRevision
impl Eq for TopologyRevision
impl StructuralPartialEq for TopologyRevision
Auto Trait Implementations§
impl Freeze for TopologyRevision
impl RefUnwindSafe for TopologyRevision
impl Send for TopologyRevision
impl Sync for TopologyRevision
impl Unpin for TopologyRevision
impl UnsafeUnpin for TopologyRevision
impl UnwindSafe for TopologyRevision
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.