pub struct Puller<T> { /* private fields */ }
Expand description
An adapter from which one can pull elements of type T
.
This type is very simple, and just consumes owned Vec<u8>
allocations. It is
not the most efficient thing possible, which would probably instead be something
like the bytes
crate (../bytes/) which provides an exclusive view of a shared
allocation.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Puller<T>where
T: Freeze,
impl<T> !RefUnwindSafe for Puller<T>
impl<T> !Send for Puller<T>
impl<T> !Sync for Puller<T>
impl<T> Unpin for Puller<T>where
T: Unpin,
impl<T> !UnwindSafe for Puller<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more