pub enum EndpointAddress {
Socket(SocketAddr),
Descriptor(u32),
}
Variants§
Socket(SocketAddr)
Descriptor(u32)
Implementations§
Source§impl EndpointAddress
impl EndpointAddress
pub fn localhost_http() -> Self
pub fn localhost_https() -> Self
pub fn from_socket_address(_address: impl Into<SocketAddr>) -> Self
pub fn from_socket_address_parse( _address: &(impl ToSocketAddrs + ?Sized), ) -> ServerResult<Self>
pub fn from_descriptor(_descriptor: u32) -> Self
Trait Implementations§
Source§impl Clone for EndpointAddress
impl Clone for EndpointAddress
Source§fn clone(&self) -> EndpointAddress
fn clone(&self) -> EndpointAddress
Returns a copy 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 EndpointAddress
impl RefUnwindSafe for EndpointAddress
impl Send for EndpointAddress
impl Sync for EndpointAddress
impl Unpin for EndpointAddress
impl UnwindSafe for EndpointAddress
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