pub enum Drained {
Ended,
Rejected(Notice),
Unconfirmed,
}Expand description
How a request ended, as observed by Subscription::cancel_and_drain.
Variants§
Ended
TWS sent the end marker: the request is over at TWS.
Rejected(Notice)
TWS answered with an error for the request. For request types whose errors aren’t known to end the request at TWS, the drop still writes the cancel.
Unconfirmed
No terminal evidence: the deadline passed, or the stream had already ended with an error on our side (such as a buffer overflow), after which TWS’s state can’t be observed. Treat the request id as possibly still live.
Trait Implementations§
impl StructuralPartialEq for Drained
Auto Trait Implementations§
impl Freeze for Drained
impl RefUnwindSafe for Drained
impl Send for Drained
impl Sync for Drained
impl Unpin for Drained
impl UnsafeUnpin for Drained
impl UnwindSafe for Drained
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