Struct zmtp::Frame
[−]
[src]
pub struct Frame { /* fields omitted */ }
Methods
impl Frame
[src]
fn new() -> Self
fn from_str(s: &str) -> Frame
fn from_bytes(bytes: &[u8]) -> Frame
fn get_size(&self) -> &Size
fn get_kind(&self) -> &FrameKind
fn get_is_last(&self) -> bool
fn body_len(&self) -> usize
fn view_body<'l>(&'l self) -> &'l [u8]
fn edit_body<'l>(&'l mut self) -> &'l mut Vec<u8>
fn get_body(self) -> Vec<u8>
fn kind(self, kind: FrameKind) -> Self
fn is_last(self, is_last: bool) -> Self
fn set_size(self, size: Size) -> Self
fn set_body(&mut self, bytes: Vec<u8>) -> &mut Self
fn extend_body(self, bytes: &[u8]) -> Self
Trait Implementations
impl PartialEq for Frame
[src]
fn eq(&self, __arg_0: &Frame) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Frame) -> bool
This method tests for !=
.