pub struct PairDial<S> { /* private fields */ }Expand description
The asynchronous PairDial.
Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> PairDial<S>
impl<S: AsyncRead + AsyncWrite + Unpin> PairDial<S>
Sourcepub fn shown(&self) -> Option<&Shown>
pub fn shown(&self) -> Option<&Shown>
What to show a person now, as crate::PairDial::shown.
Sourcepub async fn finish(self, store: &TrustStore) -> Result<Paired, PeerError>
pub async fn finish(self, store: &TrustStore) -> Result<Paired, PeerError>
Runs the exchange to its end and accepts the responder in store, as
crate::PairDial::finish.
§Errors
Trait Implementations§
Auto Trait Implementations§
impl<S> !RefUnwindSafe for PairDial<S>
impl<S> !UnwindSafe for PairDial<S>
impl<S> Freeze for PairDial<S>where
S: Freeze,
impl<S> Send for PairDial<S>where
S: Send,
impl<S> Sync for PairDial<S>where
S: Sync,
impl<S> Unpin for PairDial<S>where
S: Unpin,
impl<S> UnsafeUnpin for PairDial<S>where
S: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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