#[non_exhaustive]pub enum Transport {
Unix(Unix),
Tcp(Tcp),
Vsock(Vsock),
}
Expand description
The transport properties of a D-Bus address.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unix(Unix)
A Unix Domain Socket address.
Tcp(Tcp)
TCP address details
Vsock(Vsock)
VSOCK address
This variant is only available when either vsock
or tokio-vsock
feature is enabled. The
type of stream
is vsock::VsockStream
with vsock
feature and
tokio_vsock::VsockStream
with tokio-vsock
feature.
Trait Implementations§
source§impl PartialEq for Transport
impl PartialEq for Transport
impl Eq for Transport
impl StructuralPartialEq for Transport
Auto Trait Implementations§
impl RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnwindSafe for Transport
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