pub struct TreeId(/* private fields */);Expand description
TreeId
Generated durable Fleet-scoped identity of one concrete Canister Tree.
Implementations§
Source§impl TreeId
impl TreeId
Sourcepub const fn from_generated_bytes(bytes: [u8; 32]) -> Self
pub const fn from_generated_bytes(bytes: [u8; 32]) -> Self
Construct an ID from bytes produced by the host’s cryptographic generator.
The bytes do not become authoritative until an installation journal durably records them before Tree Root creation.
pub const fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl CandidType for TreeId
impl CandidType for TreeId
impl Copy for TreeId
Source§impl<'de> Deserialize<'de> for TreeId
impl<'de> Deserialize<'de> for TreeId
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 Eq for TreeId
Source§impl Ord for TreeId
impl Ord for TreeId
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 PartialOrd for TreeId
impl PartialOrd for TreeId
impl StructuralPartialEq for TreeId
Auto Trait Implementations§
impl Freeze for TreeId
impl RefUnwindSafe for TreeId
impl Send for TreeId
impl Sync for TreeId
impl Unpin for TreeId
impl UnsafeUnpin for TreeId
impl UnwindSafe for TreeId
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