[−][src]Trait muta_protocol::traits::ServiceState
Required methods
fn get<Key: FixedCodec, Ret: FixedCodec>(
&self,
key: &Key
) -> ProtocolResult<Option<Ret>>
&self,
key: &Key
) -> ProtocolResult<Option<Ret>>
fn contains<Key: FixedCodec>(&self, key: &Key) -> ProtocolResult<bool>
fn insert<Key: FixedCodec, Value: FixedCodec>(
&mut self,
key: Key,
value: Value
) -> ProtocolResult<()>
&mut self,
key: Key,
value: Value
) -> ProtocolResult<()>
fn get_account_value<Key: FixedCodec, Ret: FixedCodec>(
&self,
address: &Address,
key: &Key
) -> ProtocolResult<Option<Ret>>
&self,
address: &Address,
key: &Key
) -> ProtocolResult<Option<Ret>>
fn set_account_value<Key: FixedCodec, Val: FixedCodec>(
&mut self,
address: &Address,
key: Key,
val: Val
) -> ProtocolResult<()>
&mut self,
address: &Address,
key: Key,
val: Val
) -> ProtocolResult<()>