Enum routing::AppendWrapper [] [src]

pub enum AppendWrapper {
    Pub {
        append_to: XorName,
        data: AppendedData,
        version: u64,
    },
    Priv {
        append_to: XorName,
        data: PrivAppendedData,
        sign_key: PublicKey,
        version: u64,
        signature: Signature,
    },
}

An AppendedData item, together with the identifier of the data to append it to.

Variants

A wrapper for public appendable data.

Fields of Pub

The name of the data chunk to add to.

The item to add to the chunk.

The current version of the chunk.

A wrapper for private appendable data.

Fields of Priv

The name of the data chunk to add to.

The item to add to the chunk.

The signer's public_key.

The current version of the chunk.

All the above fields

Methods

impl AppendWrapper
[src]

Returns a new append wrapper for public data.

Returns a new, signed append wrapper for private data.

Returns the identifier of the data to append to.

Returns true if the signature matches the data.

Returns sign_key of the signer.

Returns version of the wrapper item.

Returns priv_appended_data if AppendWrapper::Priv.

Returns pub_appended_data if AppendWrapper::Pub.

Trait Implementations

impl Hash for AppendWrapper
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Eq for AppendWrapper
[src]

impl PartialEq for AppendWrapper
[src]

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

This method tests for !=.

impl PartialOrd for AppendWrapper
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for AppendWrapper
[src]

This method returns an Ordering between self and other. Read more

impl Clone for AppendWrapper
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Decodable for AppendWrapper
[src]

Deserialize a value using a Decoder.

impl Encodable for AppendWrapper
[src]

Serialize a value using an Encoder.

impl Debug for AppendWrapper
[src]

Formats the value using the given formatter.