pub enum Frame<T = Bytes> {
Data(Data<T>),
Headers(Headers),
Priority(Priority),
PushPromise(PushPromise),
Settings(Settings),
Ping(Ping),
GoAway(GoAway),
WindowUpdate(WindowUpdate),
Reset(Reset),
}
Variants§
Data(Data<T>)
Headers(Headers)
Priority(Priority)
PushPromise(PushPromise)
Settings(Settings)
Ping(Ping)
GoAway(GoAway)
WindowUpdate(WindowUpdate)
Reset(Reset)
Implementations§
Trait Implementations§
source§impl<T> From<Continuable> for Frame<T>
impl<T> From<Continuable> for Frame<T>
source§fn from(cont: Continuable) -> Self
fn from(cont: Continuable) -> Self
Converts to this type from the input type.
source§impl<T> From<PushPromise> for Frame<T>
impl<T> From<PushPromise> for Frame<T>
source§fn from(src: PushPromise) -> Self
fn from(src: PushPromise) -> Self
Converts to this type from the input type.
source§impl<B> From<WindowUpdate> for Frame<B>
impl<B> From<WindowUpdate> for Frame<B>
source§fn from(src: WindowUpdate) -> Self
fn from(src: WindowUpdate) -> Self
Converts to this type from the input type.
source§impl<T: PartialEq> PartialEq for Frame<T>
impl<T: PartialEq> PartialEq for Frame<T>
source§impl<T, B> Sink<Frame<B>> for Codec<T, B>
impl<T, B> Sink<Frame<B>> for Codec<T, B>
source§fn poll_ready(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_ready( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Returns Ready
when the codec can buffer a frame
source§fn poll_flush(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
) -> Poll<Result<(), Self::Error>>
fn poll_flush( self: Pin<&mut Self>, cx: &mut Context<'_>, ) -> Poll<Result<(), Self::Error>>
Flush buffered data to the wire
impl<T: Eq> Eq for Frame<T>
impl<T> StructuralPartialEq for Frame<T>
Auto Trait Implementations§
impl<T = Bytes> !Freeze for Frame<T>
impl<T> RefUnwindSafe for Frame<T>where
T: RefUnwindSafe,
impl<T> Send for Frame<T>where
T: Send,
impl<T> Sync for Frame<T>where
T: Sync,
impl<T> Unpin for Frame<T>where
T: Unpin,
impl<T> UnwindSafe for Frame<T>where
T: UnwindSafe,
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.