pub enum StoreRequest {
WriteItem {
attempt: Item,
responder: StoreWriteItemResponder,
},
Export {
empty: Vmo,
responder: StoreExportResponder,
},
_UnknownMethod {
ordinal: u64,
control_handle: StoreControlHandle,
method_type: MethodType,
},
}
Expand description
A very basic key-value store - so basic, in fact, that one may only write to it, never read!
Variants§
WriteItem
Writes an item to the store.
Export
Exports the entire store as a persistent Exportable
FIDL object into a VMO provided by
the client.
By having the client provide (and speculatively size) the VMO, we force the party requesting the relatively heavy load of generating a backup to acknowledge and bear some of the costs.
This method operates by having the client supply an empty VMO, which the server then
attempts to fill. Notice that the server removes the zx.Rights.WRITE
and
zx.Rights.SET_PROPERTY
rights from the returned VMO - not even the requesting client may
alter the backup once it has been minted by the server.
_UnknownMethod
An interaction was received which does not match any known method.
Fields
This variant is marked as non-exhaustive
control_handle: StoreControlHandle
method_type: MethodType
Implementations§
Source§impl StoreRequest
impl StoreRequest
pub fn into_write_item(self) -> Option<(Item, StoreWriteItemResponder)>
pub fn into_export(self) -> Option<(Vmo, StoreExportResponder)>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL