pub enum MemoryMode {
Disabled,
Permissive,
Strict,
}Expand description
Memory bounds validation and limiter behavior.
Variants§
Disabled
Bounds validation is skipped and no limiter is installed, whatever enable_global_limiter says.
Permissive
Bounds that do not fit the ceiling are logged as a warning and startup continues.
Memory limiting is best effort: the limiter is installed when a ceiling resolves and
enable_global_limiter is true.
Strict
Bounds that do not fit the ceiling fail startup.
The limiter is installed on the same terms as MemoryMode::Permissive.
Trait Implementations§
Source§impl Clone for MemoryMode
impl Clone for MemoryMode
Source§fn clone(&self) -> MemoryMode
fn clone(&self) -> MemoryMode
Returns a duplicate 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 MemoryMode
impl Debug for MemoryMode
Source§impl Default for MemoryMode
impl Default for MemoryMode
Source§fn default() -> MemoryMode
fn default() -> MemoryMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for MemoryMode
impl PartialEq for MemoryMode
Source§impl Serialize for MemoryMode
impl Serialize for MemoryMode
impl Copy for MemoryMode
impl Eq for MemoryMode
impl StructuralPartialEq for MemoryMode
Auto Trait Implementations§
impl Freeze for MemoryMode
impl RefUnwindSafe for MemoryMode
impl Send for MemoryMode
impl Sync for MemoryMode
impl Unpin for MemoryMode
impl UnwindSafe for MemoryMode
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