[−][src]Struct packet::buffer::Slice
A static buffer.
Implementations
impl<'a> Buffer<'a>
[src]
Trait Implementations
impl<'a> AsMut<[u8]> for Buffer<'a>
[src]
impl<'a> AsRef<[u8]> for Buffer<'a>
[src]
impl<'a> Buffer for Buffer<'a>
[src]
type Inner = &'a mut [u8]
Inner type used by the buffer.
pub fn into_inner(self) -> Self::Inner
[src]
pub fn next(&mut self, size: usize) -> Result<()>
[src]
pub fn more(&mut self, size: usize) -> Result<()>
[src]
pub fn clear(&mut self)
[src]
pub fn used(&self) -> usize
[src]
pub fn offset(&self) -> usize
[src]
pub fn length(&self) -> usize
[src]
pub fn data(&self) -> &[u8]
[src]
pub fn data_mut(&mut self) -> &mut [u8]
[src]
impl<'a> Debug for Buffer<'a>
[src]
impl<'a> Deref for Buffer<'a>
[src]
impl<'a> DerefMut for Buffer<'a>
[src]
impl<'a> Eq for Buffer<'a>
[src]
impl<'a> PartialEq<Buffer<'a>> for Buffer<'a>
[src]
impl<'a> StructuralEq for Buffer<'a>
[src]
impl<'a> StructuralPartialEq for Buffer<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Buffer<'a>
impl<'a> Send for Buffer<'a>
impl<'a> Sync for Buffer<'a>
impl<'a> Unpin for Buffer<'a>
impl<'a> !UnwindSafe for Buffer<'a>
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>,