[−][src]Struct liverust_lib::netio::reader::Reader
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]
&mut self,
bytes_num: usize
) -> Result<Cursor<BytesMut>, IOReadError>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,