Struct apisdk::SocketAddrs
source · pub struct SocketAddrs { /* private fields */ }
Expand description
This struct is used to provides many SocketAddrs
Implementations§
source§impl SocketAddrs
impl SocketAddrs
sourcepub fn new_multi(addrs: Vec<SocketAddr>) -> Self
pub fn new_multi(addrs: Vec<SocketAddr>) -> Self
Construct an instance based on vector of SocketAddrs
sourcepub fn new_single(addr: SocketAddr) -> Self
pub fn new_single(addr: SocketAddr) -> Self
Construct an instance based on single SocketAddr
Trait Implementations§
source§impl From<IpAddr> for SocketAddrs
impl From<IpAddr> for SocketAddrs
source§impl From<SocketAddr> for SocketAddrs
impl From<SocketAddr> for SocketAddrs
source§fn from(value: SocketAddr) -> Self
fn from(value: SocketAddr) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SocketAddrs
impl Send for SocketAddrs
impl !Sync for SocketAddrs
impl Unpin for SocketAddrs
impl !UnwindSafe for SocketAddrs
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