[−][src]Trait kern::Stream
The Kern Stream provides additional self processing functions
Required methods
fn r(&mut self, buf: &mut [u8]) -> Result<usize>
fn re(&mut self, buf: &mut [u8]) -> Result<()>
fn w(&mut self, buf: &[u8]) -> Result<usize>
fn wa(&mut self, buf: &[u8]) -> Result<()>
fn read_full(&mut self, buf_size: usize) -> Result<Vec<u8>, Error>
fn read_byte(&mut self) -> Result<u8, Error>
fn read_bool(&mut self) -> Result<bool, Error>
fn write_byte(&mut self, byte: u8) -> Result<(), Error>
fn write_bool(&mut self, b: bool) -> Result<(), Error>
Implementations on Foreign Types
impl Stream for TcpStream
[src]
fn r(&mut self, buf: &mut [u8]) -> Result<usize>
[src]
fn re(&mut self, buf: &mut [u8]) -> Result<()>
[src]
fn w(&mut self, buf: &[u8]) -> Result<usize>
[src]
fn wa(&mut self, buf: &[u8]) -> Result<()>
[src]
fn read_full(&mut self, buf_size: usize) -> Result<Vec<u8>, Error>
[src]
Read until no more data is provided
fn read_byte(&mut self) -> Result<u8, Error>
[src]
Read byte (u8) from stream
fn read_bool(&mut self) -> Result<bool, Error>
[src]
Read bool from stream
fn write_byte(&mut self, u: u8) -> Result<(), Error>
[src]
Write byte (u8) to stream
fn write_bool(&mut self, b: bool) -> Result<(), Error>
[src]
Write bool to stream