pub struct DeployResourceLimits { /* private fields */ }Expand description
Authored deploy resource limits with source-aware child fields.
Implementations§
Source§impl DeployResourceLimits
impl DeployResourceLimits
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete resource-limits mapping span.
Sourcepub const fn pids(&self) -> Option<&Located<DeployResourcePids>>
pub const fn pids(&self) -> Option<&Located<DeployResourcePids>>
Returns the authored deploy resource PID scalar spelling and category.
Sourcepub const fn cpus(&self) -> Option<&Located<DeployResourceCpus>>
pub const fn cpus(&self) -> Option<&Located<DeployResourceCpus>>
Returns the authored deploy resource CPU scalar spelling and category.
Sourcepub const fn memory(&self) -> Option<&Located<DeployResourceMemory>>
pub const fn memory(&self) -> Option<&Located<DeployResourceMemory>>
Returns the authored deploy resource memory value and its source location.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained resource-limit extensions.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns retained unknown resource-limit fields.
Trait Implementations§
Source§impl Clone for DeployResourceLimits
impl Clone for DeployResourceLimits
Source§fn clone(&self) -> DeployResourceLimits
fn clone(&self) -> DeployResourceLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeployResourceLimits
impl Debug for DeployResourceLimits
impl Eq for DeployResourceLimits
Source§impl PartialEq for DeployResourceLimits
impl PartialEq for DeployResourceLimits
impl StructuralPartialEq for DeployResourceLimits
Auto Trait Implementations§
impl Freeze for DeployResourceLimits
impl RefUnwindSafe for DeployResourceLimits
impl Send for DeployResourceLimits
impl Sync for DeployResourceLimits
impl Unpin for DeployResourceLimits
impl UnsafeUnpin for DeployResourceLimits
impl UnwindSafe for DeployResourceLimits
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