Struct reserve_port::ReservedSocketAddr
source · pub struct ReservedSocketAddr { /* private fields */ }
Implementations§
source§impl ReservedSocketAddr
impl ReservedSocketAddr
pub fn reserve_random_socket_addr() -> Result<Self>
pub fn port(&self) -> u16
pub fn ip(&self) -> IpAddr
pub fn socket_addr(&self) -> SocketAddr
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReservedSocketAddr
impl Send for ReservedSocketAddr
impl Sync for ReservedSocketAddr
impl Unpin for ReservedSocketAddr
impl UnwindSafe for ReservedSocketAddr
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