pub struct BodyBytes<'a> { /* private fields */ }
Expand description

Read more from a body.

Implementations§

Creates a new body bytes.

Returns the length of this body.

returns the inner slice

Trait Implementations§

Returns the entire slice.
Returns all remaining bytes.
Try to read a given length of bytes. Read more
Tries to read a given length without updating the internal position. Returns None if there are not enought bytes remaining.
Returns the length of the entire slice.
Reads a given length of bytes. Read more
Try to read 1 bytes in big-endian converting them into an u8.
Reads 1 bytes in big-endian converting them into an u8. Read more
Try to read 2 bytes in big-endian converting them into an u16.
Reads 2 bytes in big-endian converting them into an u16. Read more
Try to read 4 bytes in big-endian converting them into an u32.
Reads 4 bytes in big-endian converting them into an u32. Read more
Try to read 8 bytes in big-endian converting them into an u64.
Reads 8 bytes in big-endian converting them into an u64. Read more
Try to read 16 bytes in big-endian converting them into an u128.
Reads 16 bytes in big-endian converting them into an u128. Read more
Try to read 1 bytes in big-endian converting them into an i8.
Reads 1 bytes in big-endian converting them into an i8. Read more
Try to read 2 bytes in big-endian converting them into an i16.
Reads 2 bytes in big-endian converting them into an i16. Read more
Try to read 4 bytes in big-endian converting them into an i32.
Reads 4 bytes in big-endian converting them into an i32. Read more
Try to read 8 bytes in big-endian converting them into an i64.
Reads 8 bytes in big-endian converting them into an i64. Read more
Try to read 16 bytes in big-endian converting them into an i128.
Reads 16 bytes in big-endian converting them into an i128. Read more
Try to read 4 bytes in big-endian converting them into an f32.
Reads 4 bytes in big-endian converting them into an f32. Read more
Try to read 8 bytes in big-endian converting them into an f64.
Reads 8 bytes in big-endian converting them into an f64. Read more
Try to read 1 bytes in little-endian converting them into an u8.
Reads 1 bytes in little-endian converting them into an u8. Read more
Try to read 2 bytes in little-endian converting them into an u16.
Reads 2 bytes in little-endian converting them into an u16. Read more
Try to read 4 bytes in little-endian converting them into an u32.
Reads 4 bytes in little-endian converting them into an u32. Read more
Try to read 8 bytes in little-endian converting them into an u64.
Reads 8 bytes in little-endian converting them into an u64. Read more
Try to read 16 bytes in little-endian converting them into an u128.
Reads 16 bytes in little-endian converting them into an u128. Read more
Try to read 1 bytes in little-endian converting them into an i8.
Reads 1 bytes in little-endian converting them into an i8. Read more
Try to read 2 bytes in little-endian converting them into an i16.
Reads 2 bytes in little-endian converting them into an i16. Read more
Try to read 4 bytes in little-endian converting them into an i32.
Reads 4 bytes in little-endian converting them into an i32. Read more
Try to read 8 bytes in little-endian converting them into an i64.
Reads 8 bytes in little-endian converting them into an i64. Read more
Try to read 16 bytes in little-endian converting them into an i128.
Reads 16 bytes in little-endian converting them into an i128. Read more
Try to read 4 bytes in little-endian converting them into an f32.
Reads 4 bytes in little-endian converting them into an f32. Read more
Try to read 8 bytes in little-endian converting them into an f64.
Reads 8 bytes in little-endian converting them into an f64. Read more
Returns the internal position.
Sets the internal position if possible.
Sets the internal position.
Advances the internal position if possible.
Advances the internal position. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.