pub struct Tcp { /* private fields */ }
Expand description
A TCP transport in a D-Bus address.
Implementations§
Source§impl Tcp
impl Tcp
Sourcepub fn new(host: &str, port: u16) -> Self
pub fn new(host: &str, port: u16) -> Self
Create a new TCP transport with the given host and port.
Sourcepub fn set_family(self, family: Option<TcpTransportFamily>) -> Self
pub fn set_family(self, family: Option<TcpTransportFamily>) -> Self
Set the tcp:
address family
value.
Sourcepub fn set_nonce_file(self, nonce_file: Option<Vec<u8>>) -> Self
pub fn set_nonce_file(self, nonce_file: Option<Vec<u8>>) -> Self
Set the tcp:
address noncefile
value.
Sourcepub fn family(&self) -> Option<TcpTransportFamily>
pub fn family(&self) -> Option<TcpTransportFamily>
Returns the tcp:
address family
value.
Sourcepub fn nonce_file(&self) -> Option<&[u8]>
pub fn nonce_file(&self) -> Option<&[u8]>
The nonce file path, if any.
Sourcepub fn take_nonce_file(&mut self) -> Option<Vec<u8>>
pub fn take_nonce_file(&mut self) -> Option<Vec<u8>>
Take ownership of the nonce file path, if any.
Trait Implementations§
impl Eq for Tcp
impl StructuralPartialEq for Tcp
Auto Trait Implementations§
impl Freeze for Tcp
impl RefUnwindSafe for Tcp
impl Send for Tcp
impl Sync for Tcp
impl Unpin for Tcp
impl UnwindSafe for Tcp
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