pub struct Endpoint {
pub addr: String,
pub port: u16,
pub class: AddrClass,
}Expand description
This machine’s end of a socket.
Fields§
§addr: StringAddress text (“127.0.0.1”, “::”, “192.168.1.20”): this machine’s own address.
port: u16§class: AddrClassTrait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Endpoint
impl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Forget for Endpoint
impl Freeze for Endpoint
impl Move for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpointwhere
RawVecInner: Send,
impl Sync for Endpointwhere
RawVecInner: Sync,
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpointwhere
RawVecInner: UnwindSafe,
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