Struct KeepAliveStream
pub struct KeepAliveStream<S> { /* private fields */ }
A wrapper around a stream that produces keep-alive events
Trait Implementations
impl<'__pin, S> Unpin for KeepAliveStream<S>
where
PinnedFieldsOf<__Origin<'__pin, S>>: Unpin,
impl<S, E> Stream for KeepAliveStream<S>
where
S: Stream<Item = Result<Event, E>>,
type Item = Result<Event, E>;fn poll_next(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>>
impl<S: Debug> Debug for KeepAliveStream<S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<S> !Freeze for KeepAliveStream<S>
impl<S> !RefUnwindSafe for KeepAliveStream<S>
impl<S> !UnsafeUnpin for KeepAliveStream<S>
impl<S> !UnwindSafe for KeepAliveStream<S>
impl<S> Send for KeepAliveStream<S>
where
S: Send,
impl<S> Sync for KeepAliveStream<S>
where
S: Sync,
Blanket Implementations
impl<S> TryStreamExt for KeepAliveStream<S>
where
S: TryStream + ?Sized,
impl<S, T, E> TryStream for KeepAliveStream<S>
where
S: Stream<Item = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll_next(self: Pin<&mut S>, cx: &mut Context<'_>) -> Poll<Option<Result<<S as TryStream>::Ok, <S as TryStream>::Error>>>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for KeepAliveStream<S>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for KeepAliveStream<S>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for KeepAliveStream<S>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for KeepAliveStream<S>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for KeepAliveStream<S>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for KeepAliveStream<S>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for KeepAliveStream<S>
impl<T> Read<Exclusive, BecauseExclusive> for KeepAliveStream<S>
where
T: ?Sized,
impl<T> Same for KeepAliveStream<S>
type Output = T;
impl<T> StreamExt for KeepAliveStream<S>
where
T: Stream + ?Sized,
impl<T> WithSubscriber for KeepAliveStream<S>
impl<T, U> Into<U> for KeepAliveStream<S>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for KeepAliveStream<S>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for KeepAliveStream<S>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for KeepAliveStream<S>
where
V: MultiLane<T>,
fn vzip(self) -> V