pub enum PullResult {
Err,
Ok(usize),
End(usize),
}Expand description
The return type for FetchProcessor::pull
Variants§
Err
Indicates a failure, the pipeline will be stopped with an error
Ok(usize)
Specify how many bytes were written to the buffer, and that the processor is ready for the next call
End(usize)
The processor is done, and returns how many bytes were treated
Trait Implementations§
Source§impl Clone for PullResult
impl Clone for PullResult
Source§fn clone(&self) -> PullResult
fn clone(&self) -> PullResult
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PullResult
impl Debug for PullResult
impl Copy for PullResult
Auto Trait Implementations§
impl Freeze for PullResult
impl RefUnwindSafe for PullResult
impl Send for PullResult
impl Sync for PullResult
impl Unpin for PullResult
impl UnwindSafe for PullResult
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