Trait penumbra_proto::state::StateWriteProto

source ·
pub trait StateWriteProto: StateWrite + Send + Sync {
    // Provided methods
    fn put<D>(&mut self, key: String, value: D)
       where D: DomainType,
             Error: From<<D as TryFrom<D::Proto>>::Error> { ... }
    fn put_proto<P>(&mut self, key: String, value: P)
       where P: Message + Default + Debug { ... }
    fn nonverifiable_put<D>(&mut self, key: Vec<u8>, value: D)
       where D: DomainType,
             Error: From<<D as TryFrom<D::Proto>>::Error> { ... }
    fn record_proto<E>(&mut self, proto_event: E)
       where E: ProtoEvent { ... }
}
Available on crate feature cnidarium only.

Provided Methods§

source

fn put<D>(&mut self, key: String, value: D)
where D: DomainType, Error: From<<D as TryFrom<D::Proto>>::Error>,

Puts a domain type into the verifiable key-value store with the given key.

source

fn put_proto<P>(&mut self, key: String, value: P)
where P: Message + Default + Debug,

Puts a proto type into the verifiable key-value store with the given key.

source

fn nonverifiable_put<D>(&mut self, key: Vec<u8>, value: D)
where D: DomainType, Error: From<<D as TryFrom<D::Proto>>::Error>,

Puts a domain type into the nonverifiable key-value store with the given key

source

fn record_proto<E>(&mut self, proto_event: E)
where E: ProtoEvent,

Records a Protobuf message as a typed ABCI event.

Object Safety§

This trait is not object safe.

Implementors§