[][src]Enum casper_node::effect::requests::StateStoreRequest

pub enum StateStoreRequest {
    Save {
        key: Cow<'static, [u8]>,
        data: Vec<u8>,
        responder: Responder<()>,
    },
    Load {
        key: Cow<'static, [u8]>,
        responder: Responder<Option<Vec<u8>>>,
    },
}

State store request.

Variants

Save

Stores a piece of state to storage.

Fields of Save

key: Cow<'static, [u8]>

Key to store under.

data: Vec<u8>

Value to store, already serialized.

responder: Responder<()>

Notification when storing is complete.

Load

Loads a piece of state from storage.

Fields of Load

key: Cow<'static, [u8]>

Key to load from.

responder: Responder<Option<Vec<u8>>>

Responder for value, if found, returning the previously passed in serialization form.

Trait Implementations

impl DataSize for StateStoreRequest[src]

impl Debug for StateStoreRequest[src]

impl Display for StateStoreRequest[src]

impl From<StateStoreRequest> for Event[src]

impl Serialize for StateStoreRequest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Serialize for T where
    T: Serialize + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]