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§
sourcefn put<D>(&mut self, key: String, value: D)
fn put<D>(&mut self, key: String, value: D)
Puts a domain type into the verifiable key-value store with the given key.
sourcefn put_proto<P>(&mut self, key: String, value: P)
fn put_proto<P>(&mut self, key: String, value: P)
Puts a proto type into the verifiable key-value store with the given key.
sourcefn nonverifiable_put<D>(&mut self, key: Vec<u8>, value: D)
fn nonverifiable_put<D>(&mut self, key: Vec<u8>, value: D)
Puts a domain type into the nonverifiable key-value store with the given key
sourcefn record_proto<E>(&mut self, proto_event: E)where
E: ProtoEvent,
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.