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