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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Source§impl StoreProxyInterface for StoreProxy
impl StoreProxyInterface for StoreProxy
type WriteItemResponseFut = QueryResponseFut<Result<(), WriteError>>
type ExportResponseFut = QueryResponseFut<Result<Vmo, ExportError>>
fn write_item(&self, attempt: &Item) -> Self::WriteItemResponseFut
fn export(&self, empty: Vmo) -> Self::ExportResponseFut
Auto Trait Implementations§
impl Freeze for StoreProxy
impl !RefUnwindSafe for StoreProxy
impl Send for StoreProxy
impl Sync for StoreProxy
impl Unpin for StoreProxy
impl !UnwindSafe for StoreProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)