pub enum EnqueueOutcome {
Queued {
id: String,
evicted: Option<QueuedRequest>,
},
Rejected {
request: ApiRequest,
},
}Expand description
Result of attempting to add a request to an OfflineQueue.
Variants§
Queued
The request was queued with its assigned identifier.
Fields
§
evicted: Option<QueuedRequest>Lower-priority request removed to make room, if any.
Rejected
The queue rejected the request because no slot was available.
Fields
§
request: ApiRequestThe original request, returned so the caller can handle or persist it.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnqueueOutcome
impl RefUnwindSafe for EnqueueOutcome
impl Send for EnqueueOutcome
impl Sync for EnqueueOutcome
impl Unpin for EnqueueOutcome
impl UnsafeUnpin for EnqueueOutcome
impl UnwindSafe for EnqueueOutcome
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