Struct crushtool::CrushRuleStep
[−]
[src]
pub struct CrushRuleStep { pub op: OpCode, pub arg1: (i32, Option<String>), pub arg2: (i32, Option<String>), }
CRUSH uses user-defined "rules" to describe how inputs should be mapped to devices. A rule consists of sequence of steps to perform to generate the set of output devices.
Fields
op: OpCode
arg1: (i32, Option<String>)
arg2: (i32, Option<String>)
Trait Implementations
impl Debug for CrushRuleStep
[src]
impl Clone for CrushRuleStep
[src]
fn clone(&self) -> CrushRuleStep
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for CrushRuleStep
[src]
impl PartialEq for CrushRuleStep
[src]
fn eq(&self, __arg_0: &CrushRuleStep) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CrushRuleStep) -> bool
This method tests for !=
.
impl Decodable for CrushRuleStep
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<CrushRuleStep, __D::Error>
Deserialize a value using a Decoder
.