pub struct DeferredEnqueueError { /* private fields */ }Expand description
Enqueue failure that hands the exact prepared request back.
Nothing is cloned or reconstructed: the request that failed to enqueue is
the request returned. Dropping this error without calling
into_request quarantines that request rather than
leaking or freeing it.
Implementations§
Source§impl DeferredEnqueueError
impl DeferredEnqueueError
pub fn new( rejection: DeferredEnqueueRejection, request: PreparedAllocationRelease, ) -> Self
pub const fn rejection(&self) -> DeferredEnqueueRejection
pub const fn request(&self) -> &PreparedAllocationRelease
Sourcepub fn into_request(self) -> PreparedAllocationRelease
pub fn into_request(self) -> PreparedAllocationRelease
Recover the exact prepared request.
Sourcepub fn quarantine(self) -> AllocationReleaseOutcome
pub fn quarantine(self) -> AllocationReleaseOutcome
Quarantine the request with the rejection recorded as its reason.
Trait Implementations§
Source§impl Debug for DeferredEnqueueError
impl Debug for DeferredEnqueueError
Source§impl Display for DeferredEnqueueError
impl Display for DeferredEnqueueError
Source§impl Error for DeferredEnqueueError
impl Error for DeferredEnqueueError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for DeferredEnqueueError
impl !UnwindSafe for DeferredEnqueueError
impl Freeze for DeferredEnqueueError
impl Send for DeferredEnqueueError
impl Sync for DeferredEnqueueError
impl Unpin for DeferredEnqueueError
impl UnsafeUnpin for DeferredEnqueueError
Blanket Implementations§
impl<T> BindingResource for T
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