pub struct Frame { /* private fields */ }Implementations§
source§impl Frame
impl Frame
pub fn from_bytes(bytes: &[u8]) -> Self
pub fn single(data: &[u8]) -> Option<Self>
pub fn first(data: &[u8]) -> (Self, usize)
pub fn consecutive(index: u8, data: &[u8]) -> (Self, usize)
pub fn flow(kind: FlowKind, block_len: u8, st: u8) -> Self
pub fn kind(&self) -> Option<Kind>
pub fn single_data(&self) -> &[u8] ⓘ
pub fn consecutive_data(&self) -> &[u8] ⓘ
pub fn first_data(&self) -> &[u8] ⓘ
pub fn first_len(&self) -> u16
pub fn flow_kind(&self) -> FlowKind
pub fn flow_len(&self) -> u8
pub fn flow_st(&self) -> u8
Trait Implementations§
source§impl PartialEq<Frame> for Frame
impl PartialEq<Frame> for Frame
source§impl<C, E, F> Sink<Frame> for Socket<C, E, F>where
C: CanTransmit<F>,
F: Frame,
impl<C, E, F> Sink<Frame> for Socket<C, E, F>where C: CanTransmit<F>, F: Frame,
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>>
Attempts to prepare the
Sink to receive a value. Read moresource§fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
fn start_send(self: Pin<&mut Self>, item: Frame) -> Result<(), Self::Error>
Begin the process of sending a value to the sink.
Each call to this function must be preceded by a successful call to
poll_ready which returned Poll::Ready(Ok(())). Read moreimpl Eq for Frame
impl StructuralEq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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