Enum rustc_session::config::OomStrategy
source · [−]pub enum OomStrategy {
Panic,
Abort,
}
Expand description
Default behavior to use in out-of-memory situations.
Variants
Panic
Generate a panic that can be caught by catch_unwind
.
Abort
Abort the process immediately.
Implementations
sourceimpl OomStrategy
impl OomStrategy
Trait Implementations
sourceimpl Clone for OomStrategy
impl Clone for OomStrategy
sourcefn clone(&self) -> OomStrategy
fn clone(&self) -> OomStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OomStrategy
impl Debug for OomStrategy
sourceimpl DepTrackingHash for OomStrategy
impl DepTrackingHash for OomStrategy
fn hash(
&self,
hasher: &mut DefaultHasher,
_: ErrorOutputType,
_for_crate_hash: bool
)
sourceimpl Hash for OomStrategy
impl Hash for OomStrategy
sourceimpl<__CTX> HashStable<__CTX> for OomStrategywhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for OomStrategywhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
sourceimpl PartialEq<OomStrategy> for OomStrategy
impl PartialEq<OomStrategy> for OomStrategy
sourcefn eq(&self, other: &OomStrategy) -> bool
fn eq(&self, other: &OomStrategy) -> bool
impl Copy for OomStrategy
impl StructuralPartialEq for OomStrategy
Auto Trait Implementations
impl RefUnwindSafe for OomStrategy
impl Send for OomStrategy
impl Sync for OomStrategy
impl Unpin for OomStrategy
impl UnwindSafe for OomStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Panic
: 0 bytesAbort
: 0 bytes