#[non_exhaustive]pub struct Address {
guid: Option<OwnedGuid>,
transport: Transport,
}
Expand description
A bus address.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.guid: Option<OwnedGuid>
§transport: Transport
Implementations§
Source§impl Address
impl Address
pub(crate) async fn connect(self) -> Result<Stream>
Sourcepub fn session() -> Result<Self>
pub fn session() -> Result<Self>
Get the address for the 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
.
Trait Implementations§
impl Eq for Address
impl StructuralPartialEq for Address
Auto Trait Implementations§
impl Freeze for Address
impl RefUnwindSafe for Address
impl Send for Address
impl Sync for Address
impl Unpin for Address
impl UnwindSafe for Address
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