pub struct InstanceId(/* private fields */);Expand description
Unique identifier for a running Core instance.
Implementations§
Source§impl InstanceId
impl InstanceId
Sourcepub fn new(value: impl Into<String>) -> Result<InstanceId, RuntimeError>
pub fn new(value: impl Into<String>) -> Result<InstanceId, RuntimeError>
Creates and validates a distributed identifier.
Sourcepub fn validate(&self) -> Result<(), RuntimeError>
pub fn validate(&self) -> Result<(), RuntimeError>
Revalidates an identifier received from a serialized boundary.
Trait Implementations§
Source§impl Clone for InstanceId
impl Clone for InstanceId
Source§fn clone(&self) -> InstanceId
fn clone(&self) -> InstanceId
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 InstanceId
impl Debug for InstanceId
Source§impl<'de> Deserialize<'de> for InstanceId
impl<'de> Deserialize<'de> for InstanceId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstanceId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstanceId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstanceId
Source§impl Hash for InstanceId
impl Hash for InstanceId
Source§impl PartialEq for InstanceId
impl PartialEq for InstanceId
Source§impl Serialize for InstanceId
impl Serialize for InstanceId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for InstanceId
Source§impl TryFrom<&str> for InstanceId
impl TryFrom<&str> for InstanceId
Source§type Error = RuntimeError
type Error = RuntimeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &str,
) -> Result<InstanceId, <InstanceId as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<InstanceId, <InstanceId as TryFrom<&str>>::Error>
Performs the conversion.
Source§impl TryFrom<String> for InstanceId
impl TryFrom<String> for InstanceId
Source§type Error = RuntimeError
type Error = RuntimeError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<InstanceId, <InstanceId as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<InstanceId, <InstanceId as TryFrom<String>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for InstanceId
impl RefUnwindSafe for InstanceId
impl Send for InstanceId
impl Sync for InstanceId
impl Unpin for InstanceId
impl UnsafeUnpin for InstanceId
impl UnwindSafe for InstanceId
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