pub struct ClaimOnOom(/* private fields */);
Expand description
An out-of-memory handler that attempts to claim the
memory within the given Span
upon OOM.
The contained span is then overwritten with an empty span.
If the span is empty or claim
fails, allocation failure occurs.
Implementations§
Trait Implementations§
Source§impl OomHandler for ClaimOnOom
impl OomHandler for ClaimOnOom
Auto Trait Implementations§
impl Freeze for ClaimOnOom
impl RefUnwindSafe for ClaimOnOom
impl Send for ClaimOnOom
impl !Sync for ClaimOnOom
impl Unpin for ClaimOnOom
impl UnwindSafe for ClaimOnOom
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