Struct emjudge_judgecore::settings::RunSetting
source · pub struct RunSetting {
pub memory_limit_KB: u64,
pub cpu_limit_ms: u64,
pub dir: String,
}
Fields§
§memory_limit_KB: u64
§cpu_limit_ms: u64
§dir: String
Implementations§
source§impl RunSetting
impl RunSetting
pub fn contain(&self, setting: &RunSetting) -> bool
pub fn merge(&self, setting: &RunSetting) -> RunSetting
Trait Implementations§
source§impl Clone for RunSetting
impl Clone for RunSetting
source§fn clone(&self) -> RunSetting
fn clone(&self) -> RunSetting
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 RunSetting
impl Debug for RunSetting
source§impl Default for RunSetting
impl Default for RunSetting
source§fn default() -> RunSetting
fn default() -> RunSetting
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for RunSetting
impl<'de> Deserialize<'de> for RunSetting
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RunSetting
impl Send for RunSetting
impl Sync for RunSetting
impl Unpin for RunSetting
impl UnwindSafe for RunSetting
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