pub struct EndPoint {
pub addr: SocketAddr,
pub encryption: EndPointEncryption,
}
Fields§
§addr: SocketAddr
§encryption: EndPointEncryption
Implementations§
Source§impl EndPoint
impl EndPoint
Sourcepub fn local_end_point(port: u16) -> Self
pub fn local_end_point(port: u16) -> Self
Build endpoint for local server
Sourcepub fn all_end_point(port: u16) -> Self
pub fn all_end_point(port: u16) -> Self
listen on 0.0.0.0
Trait Implementations§
Source§impl From<SocketAddr> for EndPoint
impl From<SocketAddr> for EndPoint
Source§fn from(addr: SocketAddr) -> Self
fn from(addr: SocketAddr) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for EndPoint
Auto Trait Implementations§
impl Freeze for EndPoint
impl RefUnwindSafe for EndPoint
impl Send for EndPoint
impl Sync for EndPoint
impl Unpin for EndPoint
impl UnwindSafe for EndPoint
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