Enum rustc_session::config::OomStrategy
source · pub enum OomStrategy {
Panic,
Abort,
}
Expand description
Default behavior to use in out-of-memory situations.
Variants§
Implementations§
source§impl OomStrategy
impl OomStrategy
Trait Implementations§
source§impl Clone for OomStrategy
impl Clone for OomStrategy
source§fn clone(&self) -> OomStrategy
fn clone(&self) -> OomStrategy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OomStrategy
impl Debug for OomStrategy
source§impl<__D: Decoder> Decodable<__D> for OomStrategy
impl<__D: Decoder> Decodable<__D> for OomStrategy
source§impl DepTrackingHash for OomStrategy
impl DepTrackingHash for OomStrategy
fn hash(
&self,
hasher: &mut DefaultHasher,
_: ErrorOutputType,
_for_crate_hash: bool
)
source§impl<__E: Encoder> Encodable<__E> for OomStrategy
impl<__E: Encoder> Encodable<__E> for OomStrategy
source§impl Hash for OomStrategy
impl Hash for OomStrategy
source§impl<__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)
source§impl PartialEq<OomStrategy> for OomStrategy
impl PartialEq<OomStrategy> for OomStrategy
source§fn 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§
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