Trait simple_stream::frame::Frame
[−]
[src]
pub trait Frame {
fn new<T: Any>(buf: &[u8], args: &Vec<T>) -> Self;
fn to_bytes(&self) -> Vec<u8>;
fn from_bytes(buf: &mut Vec<u8>) -> Option<Box<Self>>;
fn len_as_vec(&self) -> usize;
}
Required Methods
fn new<T: Any>(buf: &[u8], args: &Vec<T>) -> Self
fn to_bytes(&self) -> Vec<u8>
fn from_bytes(buf: &mut Vec<u8>) -> Option<Box<Self>>
fn len_as_vec(&self) -> usize
Implementors
impl Frame for SimpleFrameimpl Frame for WebSocketFrame