pub struct PairDial<S: Read + Write + ReadTimeout + WriteTimeout> { /* private fields */ }Expand description
A joiner’s pairing connection, past the point where it has something to show (or done).
Implementations§
Source§impl<S: Read + Write + ReadTimeout + WriteTimeout> PairDial<S>
impl<S: Read + Write + ReadTimeout + WriteTimeout> PairDial<S>
Sourcepub fn shown(&self) -> Option<&Shown>
pub fn shown(&self) -> Option<&Shown>
What to show a person now: this joiner’s PIN with its slot, or the device-flow user
code. None when the mode shows nothing.
Sourcepub fn finish(self, store: &TrustStore) -> Result<Paired, PeerError>
pub fn finish(self, store: &TrustStore) -> Result<Paired, PeerError>
Runs the exchange to its end (for a shown code, until the operator acts at the
responder), accepts the responder’s certificate in store, and closes the connection.
It waits at most what is left of PairConfig::timeout from pair_dial.
§Errors
PeerError::Pairing when either side refused; PeerError::Io when the connection
fails or the timeout passes (TimedOut); PeerError::Certificate or
PeerError::Io when the store cannot write.
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