enum StreamRequest {
Reset(u64),
Ignore,
Closed,
}Expand description
What a data stream’s task does with a control-plane request.
Shared by both data pipes because the answer is the same on each: a reset ends the stream, and an injection cannot happen here.
The caller does the resetting, because it holds &mut send and
&mut recv; this only says what to do.
Variants§
Reset(u64)
Reset the destination and stop the source with this code.
Ignore
Nothing to do — keep forwarding.
Closed
The channel has no senders left; stop polling it.
Auto Trait Implementations§
impl Freeze for StreamRequest
impl RefUnwindSafe for StreamRequest
impl Send for StreamRequest
impl Sync for StreamRequest
impl Unpin for StreamRequest
impl UnsafeUnpin for StreamRequest
impl UnwindSafe for StreamRequest
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