#[non_exhaustive]pub struct TreeOwn {
pub cpu_ms: u64,
pub memory_bytes: u64,
pub bound: Option<ResourceBound>,
}Expand description
The module root’s attributed share, funded from the module row like groups. Root plus emitted child-group CPU and memory shares never exceed their respective module-row totals.
Construct this extensible wire type with TreeOwn::new, not a literal.
ⓘ
use subc_control::TreeOwn;
let own = TreeOwn { cpu_ms: 1, memory_bytes: 2, bound: None };Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.cpu_ms: u64§memory_bytes: u64§bound: Option<ResourceBound>Absent means exact. This bounds CPU only, not current memory.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TreeOwn
impl<'de> Deserialize<'de> for TreeOwn
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
impl Eq for TreeOwn
impl StructuralPartialEq for TreeOwn
Auto Trait Implementations§
impl Forget for TreeOwn
impl Freeze for TreeOwn
impl Move for TreeOwn
impl RefUnwindSafe for TreeOwn
impl Send for TreeOwn
impl Sync for TreeOwn
impl Unpin for TreeOwn
impl UnsafeUnpin for TreeOwn
impl UnwindSafe for TreeOwn
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