Struct serial_line_ip::Slip [−][src]
pub struct Slip { /* fields omitted */ }Slip decode context structure
Methods
impl Slip[src]
impl Slippub fn new() -> Self[src]
pub fn new() -> SelfCreate a new context for slip decoding
pub fn decode<'a>(
&mut self,
input: &'a [u8],
output: &'a mut [u8]
) -> Result<(usize, &'a [u8]), ()>[src]
pub fn decode<'a>(
&mut self,
input: &'a [u8],
output: &'a mut [u8]
) -> Result<(usize, &'a [u8]), ()>Byte by byte slip decode
pub fn decode_packet<'a>(
&mut self,
input: &'a [u8],
output: &'a mut [u8]
) -> Result<(usize, &'a [u8]), ()>[src]
pub fn decode_packet<'a>(
&mut self,
input: &'a [u8],
output: &'a mut [u8]
) -> Result<(usize, &'a [u8]), ()>Decode a full SLIP encoded packet