pub struct TcpConnection {
pub hostname: String,
pub port: u16,
}Expand description
Represents a non-TLS connection to a broker based on its hostname and port.
Fields§
§hostname: String§port: u16Trait Implementations§
Source§impl Clone for TcpConnection
impl Clone for TcpConnection
Source§fn clone(&self) -> TcpConnection
fn clone(&self) -> TcpConnection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TcpConnection
impl RefUnwindSafe for TcpConnection
impl Send for TcpConnection
impl Sync for TcpConnection
impl Unpin for TcpConnection
impl UnwindSafe for TcpConnection
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