[−][src]Struct blocking_permit::Cleaver
A Stream
adapter that splits buffers from a source to a given, maximum
length.
This may be useful to limit the amount of time spent processing each Item
of a Splittable
stream. This is enabled via the cleaver feature.
Methods
impl<B, E, St> Cleaver<B, E, St> where
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>>,
[src]
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>>,
pub fn new(source: St, max: usize) -> Self
[src]
Construct with source and maximum size to split on.
The size to split on must be at least 1.
Trait Implementations
impl<B, E, St> Debug for Cleaver<B, E, St> where
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>> + Debug,
[src]
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>> + Debug,
impl<B, E, St> Stream for Cleaver<B, E, St> where
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>>,
[src]
B: Splittable + Unpin,
St: Stream<Item = Result<B, E>>,
Auto Trait Implementations
impl<B, E, St> RefUnwindSafe for Cleaver<B, E, St> where
B: RefUnwindSafe,
St: RefUnwindSafe,
B: RefUnwindSafe,
St: RefUnwindSafe,
impl<B, E, St> Send for Cleaver<B, E, St> where
B: Send,
St: Send,
B: Send,
St: Send,
impl<B, E, St> Sync for Cleaver<B, E, St> where
B: Sync,
St: Sync,
B: Sync,
St: Sync,
impl<B, E, St> Unpin for Cleaver<B, E, St> where
St: Unpin,
St: Unpin,
impl<B, E, St> UnwindSafe for Cleaver<B, E, St> where
B: UnwindSafe,
St: UnwindSafe,
B: UnwindSafe,
St: UnwindSafe,
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,
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, 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<S, T, E> TryStream for S where
S: Stream<Item = Result<T, E>> + ?Sized,
[src]
S: Stream<Item = Result<T, E>> + ?Sized,