Enum async_ws::frame::FrameDecoderState
source · [−]pub enum FrameDecoderState {
Head(FrameHeadDecodeState),
ControlPayload {
frame: WsControlFrame,
reader: FramePayloadReaderState,
},
}
Variants
Head(FrameHeadDecodeState)
ControlPayload
Implementations
sourceimpl FrameDecoderState
impl FrameDecoderState
pub fn new() -> Self
pub fn restore<T: AsyncRead + Unpin>(self, transport: T) -> FrameDecoder<T>ⓘNotable traits for FrameDecoder<T>impl<T: AsyncRead + Unpin> Future for FrameDecoder<T> type Output = Result<(T, WsFrame), FrameDecodeError>;
pub fn poll<T: AsyncRead + Unpin>(
&mut self,
transport: &mut T,
cx: &mut Context<'_>
) -> Poll<Result<WsFrame, FrameDecodeError>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FrameDecoderState
impl Send for FrameDecoderState
impl Sync for FrameDecoderState
impl Unpin for FrameDecoderState
impl UnwindSafe for FrameDecoderState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more