Enum routing::Response [] [src]

pub enum Response {
    GetSuccess(DataMessageId),
    PutSuccess(DataIdentifierMessageId),
    PostSuccess(DataIdentifierMessageId),
    DeleteSuccess(DataIdentifierMessageId),
    AppendSuccess(DataIdentifierMessageId),
    GetAccountInfoSuccess {
        id: MessageId,
        data_stored: u64,
        space_available: u64,
    },
    GetFailure {
        id: MessageId,
        data_id: DataIdentifier,
        external_error_indicator: Vec<u8>,
    },
    PutFailure {
        id: MessageId,
        data_id: DataIdentifier,
        external_error_indicator: Vec<u8>,
    },
    PostFailure {
        id: MessageId,
        data_id: DataIdentifier,
        external_error_indicator: Vec<u8>,
    },
    DeleteFailure {
        id: MessageId,
        data_id: DataIdentifier,
        external_error_indicator: Vec<u8>,
    },
    AppendFailure {
        id: MessageId,
        data_id: DataIdentifier,
        external_error_indicator: Vec<u8>,
    },
    GetAccountInfoFailure {
        id: MessageId,
        external_error_indicator: Vec<u8>,
    },
}

Response message types

Variants

Reply with the requested data (may not be ignored)

Sent from a ManagedNode to an NaeManager, and from there to a Client, although this may be shortcut if the data is in a node's cache.

Success token for Put (may be ignored)

Success token for Post (may be ignored)

Success token for delete (may be ignored)

Success token for append (may be ignored)

Response containing account information for requested Client account

Fields of GetAccountInfoSuccess

Unique message identifier

Amount of data stored on the network by this Client

Amount of network space available to this Client

Error for Get, includes signed request to prevent injection attacks

Fields of GetFailure

Unique message identifier

ID of the affected data chunk

Error type sent back, may be injected from upper layers

Error for Put, includes signed request to prevent injection attacks

Fields of PutFailure

Unique message identifier

ID of the affected data chunk

Error type sent back, may be injected from upper layers

Error for Post, includes signed request to prevent injection attacks

Fields of PostFailure

Unique message identifier

ID of the affected data chunk

Error type sent back, may be injected from upper layers

Error for delete, includes signed request to prevent injection attacks

Fields of DeleteFailure

Unique message identifier

ID of the affected data chunk

Error type sent back, may be injected from upper layers

Error for append, includes signed request to prevent injection attacks

Fields of AppendFailure

Unique message identifier

ID of the affected data chunk

Error type sent back, may be injected from upper layers

Error for GetAccountInfo

Fields of GetAccountInfoFailure

Unique message identifier

Error type sent back, may be injected from upper layers

Methods

impl Response
[src]

The priority Crust should send this message with.

Is this response cacheable?

Trait Implementations

impl Ord for Response
[src]

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

impl PartialOrd for Response
[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 Eq for Response
[src]

impl PartialEq for Response
[src]

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

This method tests for !=.

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Hash for Response
[src]

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

Feeds a slice of this type into the state provided.

impl Debug for Response
[src]

Formats the value using the given formatter.