pub enum Capture {
FailAbove(usize),
KeepHead(usize),
KeepTail(usize),
}Available on neither
target_family=wasm nor iOS.Expand description
What to keep of a pipe, in bytes.
Variants§
FailAbove(usize)
Past the limit, the child is stopped and the run fails.
KeepHead(usize)
Keeps the first bytes and discards the rest as it arrives.
KeepTail(usize)
Trait Implementations§
impl Copy for Capture
impl Eq for Capture
impl StructuralPartialEq for Capture
Auto Trait Implementations§
impl Freeze for Capture
impl RefUnwindSafe for Capture
impl Send for Capture
impl Sync for Capture
impl Unpin for Capture
impl UnsafeUnpin for Capture
impl UnwindSafe for Capture
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