Struct netdiag::RouteSocket
source · [−]pub struct RouteSocket { /* private fields */ }
Implementations
sourceimpl RouteSocket
impl RouteSocket
pub async fn new(bind: SocketAddr) -> Result<Self>
pub async fn source(&mut self, addr: SocketAddr) -> Result<IpAddr>
Auto Trait Implementations
impl RefUnwindSafe for RouteSocket
impl Send for RouteSocket
impl Sync for RouteSocket
impl Unpin for RouteSocket
impl UnwindSafe for RouteSocket
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more