Struct libp2p_observed_address::Sender
source · pub struct Sender<C> { /* private fields */ }
Expand description
Sender
allows reporting back the observed address to the remote endpoint.
Implementations
sourceimpl<C: AsyncWrite> Sender<C>
impl<C: AsyncWrite> Sender<C>
sourcepub fn send_address(self, a: Multiaddr) -> impl Future<Item = (), Error = Error>
pub fn send_address(self, a: Multiaddr) -> impl Future<Item = (), Error = Error>
Send address a
to remote as the observed address.
Auto Trait Implementations
impl<C> RefUnwindSafe for Sender<C>where
C: RefUnwindSafe,
impl<C> Send for Sender<C>where
C: Send,
impl<C> Sync for Sender<C>where
C: Sync,
impl<C> Unpin for Sender<C>where
C: Unpin,
impl<C> UnwindSafe for Sender<C>where
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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