pub struct ComponentInstanceId(/* private fields */);Expand description
ComponentInstanceId
Generated durable Fleet-scoped identity of one concrete Component.
Implementations§
Source§impl ComponentInstanceId
impl ComponentInstanceId
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 owning root’s allocator.
The bytes do not become authoritative until the owning Fleet Subnet Root durably records the allocation before Component creation.
pub const fn as_bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl CandidType for ComponentInstanceId
impl CandidType for ComponentInstanceId
Source§impl Clone for ComponentInstanceId
impl Clone for ComponentInstanceId
Source§fn clone(&self) -> ComponentInstanceId
fn clone(&self) -> ComponentInstanceId
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 moreimpl Copy for ComponentInstanceId
Source§impl Debug for ComponentInstanceId
impl Debug for ComponentInstanceId
Source§impl<'de> Deserialize<'de> for ComponentInstanceId
impl<'de> Deserialize<'de> for ComponentInstanceId
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 ComponentInstanceId
impl Display for ComponentInstanceId
impl Eq for ComponentInstanceId
Source§impl FromStr for ComponentInstanceId
impl FromStr for ComponentInstanceId
Source§impl Hash for ComponentInstanceId
impl Hash for ComponentInstanceId
Source§impl Ord for ComponentInstanceId
impl Ord for ComponentInstanceId
Source§fn cmp(&self, other: &ComponentInstanceId) -> Ordering
fn cmp(&self, other: &ComponentInstanceId) -> 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 ComponentInstanceId
impl PartialEq for ComponentInstanceId
Source§impl PartialOrd for ComponentInstanceId
impl PartialOrd for ComponentInstanceId
Source§impl Serialize for ComponentInstanceId
impl Serialize for ComponentInstanceId
Source§impl Storable for ComponentInstanceId
impl Storable for ComponentInstanceId
Source§fn to_bytes(&self) -> Cow<'_, [u8]>
fn to_bytes(&self) -> Cow<'_, [u8]>
Converts the element into a possibly borrowed byte slice. Read more
Source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
Source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but checks that bytes conform to declared bounds.Source§fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
fn into_bytes_checked(self) -> Vec<u8> ⓘwhere
Self: Sized,
Like
into_bytes, but checks that bytes conform to declared bounds.Source§fn check_bounds(bytes: &[u8])
fn check_bounds(bytes: &[u8])
Validates that a byte slice fits within this type’s declared bounds.
impl StructuralPartialEq for ComponentInstanceId
Auto Trait Implementations§
impl Freeze for ComponentInstanceId
impl RefUnwindSafe for ComponentInstanceId
impl Send for ComponentInstanceId
impl Sync for ComponentInstanceId
impl Unpin for ComponentInstanceId
impl UnsafeUnpin for ComponentInstanceId
impl UnwindSafe for ComponentInstanceId
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