pub struct WsRxFramer<'a> { /* private fields */ }
Expand description
Framer used to retrieve data (websocket frames and http responses)
Implementations§
Source§impl<'a> WsRxFramer<'a>
impl<'a> WsRxFramer<'a>
pub fn new(buf: &'a mut [u8]) -> Self
pub fn process_http_response<'b>(&'b mut self, n: usize) -> Option<HttpResponse>
pub fn process_data<'b>(&'b mut self) -> Option<WsFrame<'b>>
pub fn mut_buf<'b>(&'b mut self) -> &'b mut [u8]
pub fn revolve_write_offset(&mut self, n: usize)
Auto Trait Implementations§
impl<'a> Freeze for WsRxFramer<'a>
impl<'a> RefUnwindSafe for WsRxFramer<'a>
impl<'a> Send for WsRxFramer<'a>
impl<'a> Sync for WsRxFramer<'a>
impl<'a> Unpin for WsRxFramer<'a>
impl<'a> !UnwindSafe for WsRxFramer<'a>
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