pub struct Tcp {
pub host: Option<String>,
pub bind: Option<String>,
pub port: Option<u16>,
pub family: Option<Family>,
pub guid: Option<[u8; 16]>,
}
Expand description
This represents a DBus server address with the prefix tcp:
.
Fields§
§host: Option<String>
DNS name or IP address.
bind: Option<String>
The interface on which the server will listen to.
port: Option<u16>
The TCP port the server will open or the client will connect to.
family: Option<Family>
Is the family key/value pair.
guid: Option<[u8; 16]>
The GUID of the Address.
Implementations§
Source§impl Tcp
impl Tcp
pub fn is_connectable(&self) -> bool
pub fn is_listenable(&self) -> bool
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