pub struct Split<R> { /* private fields */ }Expand description
The segments of a buffered reader between a byte; made by
split.
Implementations§
Source§impl<R: AsyncBufRead + Unpin> Split<R>
impl<R: AsyncBufRead + Unpin> Split<R>
Sourcepub async fn next_segment(&mut self) -> Result<Option<Vec<u8>>>
pub async fn next_segment(&mut self) -> Result<Option<Vec<u8>>>
The next segment without its delimiter, None at the end.
Sourcepub fn poll_next_segment(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<Vec<u8>>>>
pub fn poll_next_segment( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<Vec<u8>>>>
Polls for the next segment.
Sourcepub fn into_inner(self) -> R
pub fn into_inner(self) -> R
The reader, taken back.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Split<R>where
R: Freeze,
impl<R> RefUnwindSafe for Split<R>where
R: RefUnwindSafe,
impl<R> Send for Split<R>where
R: Send,
impl<R> Sync for Split<R>where
R: Sync,
impl<R> Unpin for Split<R>where
R: Unpin,
impl<R> UnsafeUnpin for Split<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for Split<R>where
R: UnwindSafe,
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