pub struct StoreProxy { /* private fields */ }
Implementations§
source§impl StoreProxy
impl StoreProxy
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 Store protocol
Panics
Panics if the event stream was already taken.
sourcepub fn write_item(
&self,
payload: StoreWriteItemRequest
) -> QueryResponseFut<StoreWriteItemResult>
pub fn write_item( &self, payload: StoreWriteItemRequest ) -> QueryResponseFut<StoreWriteItemResult>
Writes an item to the store.
Since the value stored in the key-value store can now be different from the input (if the
WriteOptions.CONCAT
flag is set), we need to return the resulting Value
to the
requester.
We use an (anonymous) table
and a (named) flexible union
as the request and response
payload, respectively, to allow for easier future evolution. Both of these types are
flexible
, meaning that adding or removing members is binary-compatible. This makes them
much easier to evolve that the struct
types that were previously used, which cannot be
changed after release without breaking ABI.
Trait Implementations§
source§impl Clone for StoreProxy
impl Clone for StoreProxy
source§fn clone(&self) -> StoreProxy
fn clone(&self) -> StoreProxy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StoreProxy
impl Debug for StoreProxy
source§impl Proxy for StoreProxy
impl Proxy for StoreProxy
§type Protocol = StoreMarker
type Protocol = StoreMarker
The protocol which this
Proxy
controls.source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Create a proxy over the given channel.
source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Attempt to convert the proxy back into a channel. Read more
source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
Get a reference to the proxy’s underlying channel. Read more