pub enum RouteResult<TKey, TMsg>{
Handled,
Backlog(Job<TKey, TMsg>),
RateLimited(Job<TKey, TMsg>),
}Expand description
The possible results from a routing operation.
Variants§
Handled
The job has been handled and routed successfully
Backlog(Job<TKey, TMsg>)
The job needs to be backlogged into the internal factory’s queue (if configured)
RateLimited(Job<TKey, TMsg>)
The job has exceeded the internal rate limit specification of the router. This would be returned as a route operation in the event that the router is tracking the jobs-per-unit-time and has decided that routing this next job would exceed that limit.
Returns the job that was rejected
Trait Implementations§
Auto Trait Implementations§
impl<TKey, TMsg> Freeze for RouteResult<TKey, TMsg>
impl<TKey, TMsg> !RefUnwindSafe for RouteResult<TKey, TMsg>
impl<TKey, TMsg> Send for RouteResult<TKey, TMsg>
impl<TKey, TMsg> Sync for RouteResult<TKey, TMsg>where
TMsg: Sync,
impl<TKey, TMsg> Unpin for RouteResult<TKey, TMsg>
impl<TKey, TMsg> UnsafeUnpin for RouteResult<TKey, TMsg>where
TKey: UnsafeUnpin,
TMsg: UnsafeUnpin,
impl<TKey, TMsg> !UnwindSafe for RouteResult<TKey, TMsg>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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 moreSource§impl<T> Message for T
impl<T> Message for T
Source§fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
fn from_boxed(m: BoxedMessage) -> Result<Self, BoxedDowncastErr>
Convert a BoxedMessage to this concrete type
Source§fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
fn box_message(self, pid: &ActorId) -> Result<BoxedMessage, BoxedDowncastErr>
Convert this message to a BoxedMessage