pub enum DrainItem {
Routed {
id: i64,
wire: String,
},
Unroutable(String),
Notice(String),
}Expand description
A single drained item from the eval worker’s result channel.
Variants§
Routed
A response whose :id is a positive integer — route by that id.
Unroutable(String)
A response with :id 0 (envelope/parse error from the server)
or a non-integer id; cannot be routed to a specific pending request.
Notice(String)
A plain-text notice generated by the drain loop itself (e.g. “eval worker stopped”) — not a wire frame.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DrainItem
impl RefUnwindSafe for DrainItem
impl Send for DrainItem
impl Sync for DrainItem
impl Unpin for DrainItem
impl UnsafeUnpin for DrainItem
impl UnwindSafe for DrainItem
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more