pub struct RouteSocket { /* private fields */ }
Implementations§
Source§impl 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 !Freeze for RouteSocket
impl RefUnwindSafe for RouteSocket
impl Send for RouteSocket
impl Sync for RouteSocket
impl Unpin for RouteSocket
impl UnwindSafe for RouteSocket
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