Struct rain_task::Resources [−][src]
pub struct Resources { pub cpus: u32, }
Fields
cpus: u32
Methods
impl Resources
[src]
impl Resources
pub fn cpus(&self) -> u32
[src]
pub fn cpus(&self) -> u32
pub fn add(&mut self, resources: &Resources)
[src]
pub fn add(&mut self, resources: &Resources)
pub fn remove(&mut self, resources: &Resources)
[src]
pub fn remove(&mut self, resources: &Resources)
pub fn difference(&self, resources: &Resources) -> Resources
[src]
pub fn difference(&self, resources: &Resources) -> Resources
pub fn from_capnp(reader: &Reader) -> Resources
[src]
pub fn from_capnp(reader: &Reader) -> Resources
pub fn to_capnp(&self, builder: &mut Builder)
[src]
pub fn to_capnp(&self, builder: &mut Builder)
pub fn is_subset_of(&self, resources: &Resources) -> bool
[src]
pub fn is_subset_of(&self, resources: &Resources) -> bool
Trait Implementations
impl Clone for Resources
[src]
impl Clone for Resources
fn clone(&self) -> Resources
[src]
fn clone(&self) -> Resources
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Resources
[src]
impl Debug for Resources
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl<'de> Deserialize<'de> for Resources
[src]
impl<'de> Deserialize<'de> for Resources
fn deserialize<__D>(
__deserializer: __D
) -> Result<Resources, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Resources, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Serialize for Resources
[src]
impl Serialize for Resources
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Default for Resources
[src]
impl Default for Resources
impl Eq for Resources
[src]
impl Eq for Resources
impl PartialEq<Resources> for Resources
[src]
impl PartialEq<Resources> for Resources