[−][src]Struct packet::buffer::Dynamic
A growable buffer.
Implementations
impl Buffer
[src]
Trait Implementations
impl AsMut<[u8]> for Buffer
[src]
impl AsRef<[u8]> for Buffer
[src]
impl Buffer for Buffer
[src]
type Inner = Vec<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 Clone for Buffer
[src]
impl Debug for Buffer
[src]
impl Default for Buffer
[src]
impl Deref for Buffer
[src]
impl DerefMut for Buffer
[src]
impl Eq for Buffer
[src]
impl Into<Vec<u8, Global>> for Buffer
[src]
impl PartialEq<Buffer> for Buffer
[src]
impl StructuralEq for Buffer
[src]
impl StructuralPartialEq for Buffer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnwindSafe for Buffer
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,