pub struct StoreSynchronousProxy { /* private fields */ }
Implementations§
source§impl StoreSynchronousProxy
impl StoreSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<StoreEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<StoreEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn write_item(
&self,
attempt: &mut Item,
___deadline: Time
) -> Result<StoreWriteItemResult, Error>
pub fn write_item( &self, attempt: &mut Item, ___deadline: Time ) -> Result<StoreWriteItemResult, Error>
Writes an item to the store.
sourcepub fn iterate(
&self,
starting_at: Option<&str>,
iterator: ServerEnd<IteratorMarker>,
___deadline: Time
) -> Result<StoreIterateResult, Error>
pub fn iterate( &self, starting_at: Option<&str>, iterator: ServerEnd<IteratorMarker>, ___deadline: Time ) -> Result<StoreIterateResult, Error>
Iterates over the items in the store, using lexicographic ordering over the keys.
The [iterator
] is pipelined to the server, such that the client can
immediately send requests over the new connection.