[][src]Struct liverust_lib::netio::reader::Reader

pub struct Reader { /* fields omitted */ }

Implementations

impl Reader[src]

pub fn new(input: BytesMut) -> Reader[src]

pub fn extend_from_slice(&mut self, extend: &[u8])[src]

pub fn read_bytes(&mut self, bytes_num: usize) -> Result<BytesMut, IOReadError>[src]

pub fn read_bytes_cursor(
    &mut self,
    bytes_num: usize
) -> Result<Cursor<BytesMut>, IOReadError>
[src]

pub fn read_u8(&mut self) -> Result<u8, IOReadError>[src]

pub fn read_u24<T: ByteOrder>(&mut self) -> Result<u32, IOReadError>[src]

pub fn read_u32<T: ByteOrder>(&mut self) -> Result<u32, IOReadError>[src]

Auto Trait Implementations

impl RefUnwindSafe for Reader

impl Send for Reader

impl Sync for Reader

impl Unpin for Reader

impl UnwindSafe for Reader

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.