pub struct StoreProxy { /* private fields */ }
Implementations§
Source§impl StoreProxy
impl StoreProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for examples.keyvaluestore.supportexports/Store.
Sourcepub fn take_event_stream(&self) -> StoreEventStream
pub fn take_event_stream(&self) -> StoreEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn write_item(
&self,
attempt: &Item,
) -> QueryResponseFut<StoreWriteItemResult, DefaultFuchsiaResourceDialect>
pub fn write_item( &self, attempt: &Item, ) -> QueryResponseFut<StoreWriteItemResult, DefaultFuchsiaResourceDialect>
Writes an item to the store.
Sourcepub fn export(
&self,
empty: Vmo,
) -> QueryResponseFut<StoreExportResult, DefaultFuchsiaResourceDialect>
pub fn export( &self, empty: Vmo, ) -> QueryResponseFut<StoreExportResult, DefaultFuchsiaResourceDialect>
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.
Trait Implementations§
Source§impl Clone for StoreProxy
impl Clone for StoreProxy
Source§fn clone(&self) -> StoreProxy
fn clone(&self) -> StoreProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StoreProxy
impl Debug for StoreProxy
Source§impl Proxy for StoreProxy
impl Proxy for StoreProxy
Source§type Protocol = StoreMarker
type Protocol = StoreMarker
Proxy
controls.