Struct crushtool::Bucket [] [src]

pub struct Bucket {
    pub id: i32,
    pub bucket_type: OpCode,
    pub alg: BucketAlg,
    pub hash: CrushHash,
    pub weight: u32,
    pub size: u32,
    pub items: Vec<(i32, Option<String>)>,
    pub perm_n: u32,
    pub perm: u32,
}

Fields

this'll be negative

non-zero; type=0 is reserved for devices

Which algorithm to use

which hash function to use

16-bit fixed point

num items

num elements of *perm that are permuted/defined

Trait Implementations

impl Debug for Bucket
[src]

Formats the value using the given formatter.

impl Clone for Bucket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Bucket
[src]

impl Hash for Bucket
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Bucket
[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 Bucket
[src]

Deserialize a value using a Decoder.

impl Encodable for Bucket
[src]

Serialize a value using an Encoder.