logo

Enum zbus::Address[][src]

pub enum Address {
    Unix(OsString),
}
Expand description

A bus address

Variants

Unix(OsString)

Tuple Fields

A path on the filesystem

Implementations

Get the address for session socket respecting the DBUS_SESSION_BUS_ADDRESS environment variable. If we don’t recognize the value (or it’s not set) we fall back to $XDG_RUNTIME_DIR/bus

Get the address for system bus respecting the DBUS_SYSTEM_BUS_ADDRESS environment variable. If we don’t recognize the value (or it’s not set) we fall back to /var/run/dbus/system_bus_socket

Trait Implementations

Formats the value using the given formatter. Read more

Parse a D-BUS address and return its path if we recognize it

The associated error which can be returned from parsing.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.