pub struct NodeCpuResources {
pub cpu_shares: i64,
pub total_cpu_cores: u16,
pub reservable_cpu_cores: Vec<u16>,
}
Expand description
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§total_cpu_cores: u16
§reservable_cpu_cores: Vec<u16>
Implementations§
Source§impl NodeCpuResources
impl NodeCpuResources
pub fn builder() -> NodeCpuResourcesBuilder
Trait Implementations§
Source§impl Clone for NodeCpuResources
impl Clone for NodeCpuResources
Source§fn clone(&self) -> NodeCpuResources
fn clone(&self) -> NodeCpuResources
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 NodeCpuResources
impl Debug for NodeCpuResources
Source§impl<'de> Deserialize<'de> for NodeCpuResources
impl<'de> Deserialize<'de> for NodeCpuResources
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
Source§impl PartialEq for NodeCpuResources
impl PartialEq for NodeCpuResources
Source§impl Serialize for NodeCpuResources
impl Serialize for NodeCpuResources
impl StructuralPartialEq for NodeCpuResources
Auto Trait Implementations§
impl Freeze for NodeCpuResources
impl RefUnwindSafe for NodeCpuResources
impl Send for NodeCpuResources
impl Sync for NodeCpuResources
impl Unpin for NodeCpuResources
impl UnwindSafe for NodeCpuResources
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