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

Trait Implementations

impl Debug for CrushRuleStep
[src]

Formats the value using the given formatter.

impl Clone for CrushRuleStep
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CrushRuleStep
[src]

impl PartialEq for CrushRuleStep
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Decodable for CrushRuleStep
[src]

Deserialize a value using a Decoder.

impl Encodable for CrushRuleStep
[src]

Serialize a value using an Encoder.