[][src]Struct zbus::Guid

pub struct Guid(_);

A D-Bus server GUID.

See the D-Bus specification UUIDs chapter for details.

You can create a Guid from an existing string with Guid::try_from::<&str>.

Implementations

impl Guid[src]

pub fn generate() -> Self[src]

Generate a D-Bus GUID that can be used with e.g. Connection::new_unix_server.

pub fn as_str(&self) -> &str[src]

Returns a string slice for the GUID.

Trait Implementations

impl Clone for Guid[src]

impl Debug for Guid[src]

impl Display for Guid[src]

impl Hash for Guid[src]

impl PartialEq<Guid> for Guid[src]

impl StructuralPartialEq for Guid[src]

impl TryFrom<&'_ str> for Guid[src]

type Error = Error

The type returned in the event of a conversion error.

pub fn try_from(value: &str) -> Result<Self, Self::Error>[src]

Creates a GUID from a string with 32 hex digits.

Returns Err(Error::InvalidGUID) if the provided string is not a well-formed GUID.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.