Struct async_ws::frame::FramePayloadReaderState
source · [−]pub struct FramePayloadReaderState { /* private fields */ }
Implementations
sourceimpl FramePayloadReaderState
impl FramePayloadReaderState
pub fn new(mask: [u8; 4], payload_len: u64) -> Self
pub fn restore<T: AsyncRead + Unpin>(
self,
transport: T
) -> FramePayloadReader<T>
pub fn poll_read<T: AsyncRead + Unpin>(
&mut self,
transport: &mut T,
cx: &mut Context<'_>,
buf: &mut [u8]
) -> Poll<Result<usize>>
pub fn finished(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FramePayloadReaderState
impl Send for FramePayloadReaderState
impl Sync for FramePayloadReaderState
impl Unpin for FramePayloadReaderState
impl UnwindSafe for FramePayloadReaderState
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