pub enum SockerAddress {
IPv4(IPv4, Port),
IPv6(IPv6, Port),
Local(PathOwned),
}
Variants§
Implementations§
Source§impl SockerAddress
impl SockerAddress
pub fn into_ip_and_port(self) -> Option<(IP, Port)>
pub const fn from_ip_and_port(ip: IP, port: Port) -> Self
Trait Implementations§
Source§impl Clone for SockerAddress
impl Clone for SockerAddress
Source§fn clone(&self) -> SockerAddress
fn clone(&self) -> SockerAddress
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 SockerAddress
impl Debug for SockerAddress
Source§impl From<PathOwned> for SockerAddress
impl From<PathOwned> for SockerAddress
Source§impl PartialEq for SockerAddress
impl PartialEq for SockerAddress
impl Eq for SockerAddress
impl StructuralPartialEq for SockerAddress
Auto Trait Implementations§
impl Freeze for SockerAddress
impl RefUnwindSafe for SockerAddress
impl Send for SockerAddress
impl Sync for SockerAddress
impl Unpin for SockerAddress
impl UnwindSafe for SockerAddress
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