Struct async_ws::frame::FrameHeadDecodeState
source · [−]pub struct FrameHeadDecodeState { /* private fields */ }
Implementations
sourceimpl FrameHeadDecodeState
impl FrameHeadDecodeState
pub fn new() -> Self
pub fn restore<T: AsyncRead + Unpin>(self, transport: T) -> FrameHeadDecode<T>ⓘNotable traits for FrameHeadDecode<T>impl<T: AsyncRead + Unpin> Future for FrameHeadDecode<T> type Output = Result<(T, FrameHead), FrameDecodeError>;
pub fn poll<T: AsyncRead + Unpin>(
&mut self,
transport: &mut T,
cx: &mut Context<'_>
) -> Poll<Result<FrameHead, FrameDecodeError>>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FrameHeadDecodeState
impl Send for FrameHeadDecodeState
impl Sync for FrameHeadDecodeState
impl Unpin for FrameHeadDecodeState
impl UnwindSafe for FrameHeadDecodeState
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