pub struct Limits { /* private fields */ }
Expand description
Limits for memory/time
Implementations§
Source§impl Limits
impl Limits
pub fn new( wall_time: Option<Duration>, user_time: Option<Duration>, memory: Option<SpaceUsage>, stack: Option<SpaceUsage>, pids: Option<usize>, ) -> Self
pub fn wall_time(&self) -> Option<Duration>
pub fn user_time(&self) -> Option<Duration>
pub fn memory(&self) -> Option<SpaceUsage>
pub fn stack(&self) -> Option<SpaceUsage>
pub fn pids(&self) -> Option<usize>
Trait Implementations§
impl Copy for Limits
impl Eq for Limits
impl StructuralPartialEq for Limits
Auto Trait Implementations§
impl Freeze for Limits
impl RefUnwindSafe for Limits
impl Send for Limits
impl Sync for Limits
impl Unpin for Limits
impl UnwindSafe for Limits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)