pub struct TcpEndpoint {
pub host: String,
pub port: u16,
}Expand description
Stores a normalized TCP endpoint.
Fields§
§host: StringEndpoint host component.
port: u16Endpoint port component.
Trait Implementations§
Source§impl Clone for TcpEndpoint
impl Clone for TcpEndpoint
Source§fn clone(&self) -> TcpEndpoint
fn clone(&self) -> TcpEndpoint
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 moreSource§impl Debug for TcpEndpoint
impl Debug for TcpEndpoint
Source§impl PartialEq for TcpEndpoint
impl PartialEq for TcpEndpoint
impl Eq for TcpEndpoint
impl StructuralPartialEq for TcpEndpoint
Auto Trait Implementations§
impl Freeze for TcpEndpoint
impl RefUnwindSafe for TcpEndpoint
impl Send for TcpEndpoint
impl Sync for TcpEndpoint
impl Unpin for TcpEndpoint
impl UnsafeUnpin for TcpEndpoint
impl UnwindSafe for TcpEndpoint
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