pub struct LocalDevelopmentInstanceId(/* private fields */);Expand description
Non-secret 256-bit identity of one local-development instance lineage.
Implementations§
Source§impl LocalDevelopmentInstanceId
impl LocalDevelopmentInstanceId
Sourcepub fn derive_from_workflow_transaction(
transaction_id: [u8; 32],
) -> Result<Self, LocalDevelopmentInstanceIdError>
pub fn derive_from_workflow_transaction( transaction_id: [u8; 32], ) -> Result<Self, LocalDevelopmentInstanceIdError>
Domain-derives an instance identity from a workflow transaction identity.
Sourcepub fn from_be_bytes(
bytes: [u8; 32],
) -> Result<Self, LocalDevelopmentInstanceIdError>
pub fn from_be_bytes( bytes: [u8; 32], ) -> Result<Self, LocalDevelopmentInstanceIdError>
Constructs a nonzero identity from its fixed-width bytes.
Sourcepub const fn to_be_bytes(self) -> [u8; 32]
pub const fn to_be_bytes(self) -> [u8; 32]
Returns the exact fixed-width identity bytes.
Trait Implementations§
Source§impl Clone for LocalDevelopmentInstanceId
impl Clone for LocalDevelopmentInstanceId
impl Copy for LocalDevelopmentInstanceId
Source§impl Debug for LocalDevelopmentInstanceId
impl Debug for LocalDevelopmentInstanceId
Source§impl<'de> Deserialize<'de> for LocalDevelopmentInstanceId
impl<'de> Deserialize<'de> for LocalDevelopmentInstanceId
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for LocalDevelopmentInstanceId
impl Display for LocalDevelopmentInstanceId
impl Eq for LocalDevelopmentInstanceId
Source§impl FromStr for LocalDevelopmentInstanceId
impl FromStr for LocalDevelopmentInstanceId
Source§impl Hash for LocalDevelopmentInstanceId
impl Hash for LocalDevelopmentInstanceId
Source§impl Ord for LocalDevelopmentInstanceId
impl Ord for LocalDevelopmentInstanceId
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 PartialOrd for LocalDevelopmentInstanceId
impl PartialOrd for LocalDevelopmentInstanceId
impl StructuralPartialEq for LocalDevelopmentInstanceId
Auto Trait Implementations§
impl Freeze for LocalDevelopmentInstanceId
impl RefUnwindSafe for LocalDevelopmentInstanceId
impl Send for LocalDevelopmentInstanceId
impl Sync for LocalDevelopmentInstanceId
impl Unpin for LocalDevelopmentInstanceId
impl UnsafeUnpin for LocalDevelopmentInstanceId
impl UnwindSafe for LocalDevelopmentInstanceId
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