pub struct ReadUntil<'a, R: ?Sized> {
reader: &'a mut R,
delimiter: u8,
buf: &'a mut Vec<u8>,
read: usize,
_pin: PhantomPinned,
}
Expand description
Future for the read_until
method.
The delimiter is included in the resulting vector.
Fields§
§reader: &'a mut R
§delimiter: u8
§buf: &'a mut Vec<u8>
§read: usize
§_pin: PhantomPinned
Trait Implementations§
impl<'__pin, 'a, R: ?Sized> Unpin for ReadUntil<'a, R>where
PinnedFieldsOf<__Origin<'__pin, 'a, R>>: Unpin,
Auto Trait Implementations§
impl<'a, R> Freeze for ReadUntil<'a, R>where
R: ?Sized,
impl<'a, R> RefUnwindSafe for ReadUntil<'a, R>where
R: RefUnwindSafe + ?Sized,
impl<'a, R> Send for ReadUntil<'a, R>
impl<'a, R> Sync for ReadUntil<'a, R>
impl<'a, R> !UnwindSafe for ReadUntil<'a, R>
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
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more