#[repr(transparent)]pub struct ServiceUuid(pub Uuid);Expand description
UUID of a service.
ServiceUuids are chosen by the user when creating a service and must be unique among
all services of an object.
Tuple Fields§
§0: UuidImplementations§
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for ServiceUuid
impl<'arbitrary> Arbitrary<'arbitrary> for ServiceUuid
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl AsSerializeArg for ServiceUuid
impl AsSerializeArg for ServiceUuid
type SerializeArg<'a> = ServiceUuid
fn as_serialize_arg<'a>(&'a self) -> Self::SerializeArg<'a>where
Self: 'a,
Source§impl Clone for ServiceUuid
impl Clone for ServiceUuid
Source§fn clone(&self) -> ServiceUuid
fn clone(&self) -> ServiceUuid
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceUuid
impl Debug for ServiceUuid
Source§impl Default for ServiceUuid
impl Default for ServiceUuid
Source§fn default() -> ServiceUuid
fn default() -> ServiceUuid
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceUuid
impl<'de> Deserialize<'de> for ServiceUuid
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 Deserialize for ServiceUuid
impl Deserialize for ServiceUuid
fn deserialize( deserializer: Deserializer<'_, '_>, ) -> Result<Self, DeserializeError>
Source§impl DeserializeKey for ServiceUuid
impl DeserializeKey for ServiceUuid
type Impl = Uuid
fn try_from_impl(key: Self::Impl) -> Result<Self, DeserializeError>
Source§impl Display for ServiceUuid
impl Display for ServiceUuid
Source§impl From<ServiceUuid> for Uuid
impl From<ServiceUuid> for Uuid
Source§fn from(uuid: ServiceUuid) -> Self
fn from(uuid: ServiceUuid) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for ServiceUuid
impl From<Uuid> for ServiceUuid
Source§impl FromStr for ServiceUuid
impl FromStr for ServiceUuid
Source§impl Hash for ServiceUuid
impl Hash for ServiceUuid
Source§impl Introspectable for ServiceUuid
Available on crate feature introspection only.
impl Introspectable for ServiceUuid
Available on crate feature
introspection only.fn layout() -> Layout
fn lexical_id() -> LexicalId
fn add_references(_references: &mut References<'_>)
Source§impl KeyTypeOf for ServiceUuid
Available on crate feature introspection only.
impl KeyTypeOf for ServiceUuid
Available on crate feature
introspection only.Source§impl Ord for ServiceUuid
impl Ord for ServiceUuid
Source§fn cmp(&self, other: &ServiceUuid) -> Ordering
fn cmp(&self, other: &ServiceUuid) -> Ordering
1.21.0 · 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 ServiceUuid
impl PartialEq for ServiceUuid
Source§impl PartialOrd for ServiceUuid
impl PartialOrd for ServiceUuid
Source§impl Serialize for ServiceUuid
impl Serialize for ServiceUuid
Source§impl Serialize for ServiceUuid
impl Serialize for ServiceUuid
fn serialize(&self, serializer: Serializer<'_>) -> Result<(), SerializeError>
Source§impl SerializeKey for ServiceUuid
impl SerializeKey for ServiceUuid
impl Copy for ServiceUuid
impl Eq for ServiceUuid
impl StructuralPartialEq for ServiceUuid
Auto Trait Implementations§
impl Freeze for ServiceUuid
impl RefUnwindSafe for ServiceUuid
impl Send for ServiceUuid
impl Sync for ServiceUuid
impl Unpin for ServiceUuid
impl UnwindSafe for ServiceUuid
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