pub struct Notifications<'a, S: Handshake> { /* private fields */ }Expand description
The Stream returned by Connection::notifications.
Never ends (ruling 226) — a bare while let Some(_) spins; use
.take_while(|r| ready(r.is_ok())). Borrows its Connection
(ruling 231): move the Connection into spawn_local and build this
inside the task.
Trait Implementations§
Source§impl<S: Handshake> Debug for Notifications<'_, S>
impl<S: Handshake> Debug for Notifications<'_, S>
Source§impl<S: Handshake> Stream for Notifications<'_, S>
impl<S: Handshake> Stream for Notifications<'_, S>
Source§type Item = Result<Notification, ConnectionLost>
type Item = Result<Notification, ConnectionLost>
Values yielded by the stream.
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for Notifications<'a, S>
impl<'a, S> !Send for Notifications<'a, S>
impl<'a, S> !Sync for Notifications<'a, S>
impl<'a, S> !UnwindSafe for Notifications<'a, S>
impl<'a, S> Freeze for Notifications<'a, S>where
&'a Connection<S>: Freeze,
impl<'a, S> Unpin for Notifications<'a, S>where
&'a Connection<S>: Unpin,
impl<'a, S> UnsafeUnpin for Notifications<'a, S>where
&'a Connection<S>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<P> ProviderExt for P
impl<P> ProviderExt for P
Source§fn generate<C>(
&mut self,
) -> Result<<P as CryptoKeyProvider<C>>::PrivateKey, <P as CryptoKeyProvider<C>>::Error>where
C: Curve,
P: CryptoKeyProvider<C>,
fn generate<C>(
&mut self,
) -> Result<<P as CryptoKeyProvider<C>>::PrivateKey, <P as CryptoKeyProvider<C>>::Error>where
C: Curve,
P: CryptoKeyProvider<C>,
Generate a long-term static key for curve
C.Source§fn generate_ephemeral<C>(
&mut self,
) -> Result<<P as CryptoKeyProvider<C>>::PrivateKey, <P as CryptoKeyProvider<C>>::Error>where
C: Curve,
P: CryptoKeyProvider<C>,
fn generate_ephemeral<C>(
&mut self,
) -> Result<<P as CryptoKeyProvider<C>>::PrivateKey, <P as CryptoKeyProvider<C>>::Error>where
C: Curve,
P: CryptoKeyProvider<C>,
Generate an ephemeral key for curve
C.