pub struct Frame { /* private fields */ }Implementations§
Source§impl Frame
impl Frame
pub fn new() -> Self
pub fn from_str(s: &str) -> Frame
pub fn from_bytes(bytes: &[u8]) -> Frame
pub fn get_size(&self) -> &Size
pub fn get_kind(&self) -> &FrameKind
pub fn get_is_last(&self) -> bool
pub fn body_len(&self) -> usize
pub fn view_body<'l>(&'l self) -> &'l [u8] ⓘ
pub fn edit_body<'l>(&'l mut self) -> &'l mut Vec<u8> ⓘ
pub fn get_body(self) -> Vec<u8> ⓘ
pub fn kind(self, kind: FrameKind) -> Self
pub fn is_last(self, is_last: bool) -> Self
pub fn set_size(self, size: Size) -> Self
pub fn set_body(&mut self, bytes: Vec<u8>) -> &mut Self
pub fn extend_body(self, bytes: &[u8]) -> Self
Trait Implementations§
impl Eq for Frame
impl StructuralPartialEq for Frame
Auto Trait Implementations§
impl Freeze for Frame
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