Struct oasis_core_runtime::storage::mkvs::sync::HostReadSyncer
source · pub struct HostReadSyncer { /* private fields */ }
Expand description
A proxy read syncer which forwards calls to the runtime host.
Implementations§
source§impl HostReadSyncer
impl HostReadSyncer
sourcepub fn new(
protocol: Arc<Protocol>,
endpoint: HostStorageEndpoint,
) -> HostReadSyncer
pub fn new( protocol: Arc<Protocol>, endpoint: HostStorageEndpoint, ) -> HostReadSyncer
Construct a new host proxy instance.
Trait Implementations§
source§impl ReadSync for HostReadSyncer
impl ReadSync for HostReadSyncer
source§fn sync_get(&mut self, request: GetRequest) -> Result<ProofResponse>
fn sync_get(&mut self, request: GetRequest) -> Result<ProofResponse>
Fetch a single key and returns the corresponding proof.
source§fn sync_get_prefixes(
&mut self,
request: GetPrefixesRequest,
) -> Result<ProofResponse>
fn sync_get_prefixes( &mut self, request: GetPrefixesRequest, ) -> Result<ProofResponse>
Fetch all keys under the given prefixes and returns the corresponding proofs.
source§fn sync_iterate(&mut self, request: IterateRequest) -> Result<ProofResponse>
fn sync_iterate(&mut self, request: IterateRequest) -> Result<ProofResponse>
Seek to a given key and then fetch the specified number of following items
based on key iteration order.
Auto Trait Implementations§
impl Freeze for HostReadSyncer
impl !RefUnwindSafe for HostReadSyncer
impl Send for HostReadSyncer
impl Sync for HostReadSyncer
impl Unpin for HostReadSyncer
impl !UnwindSafe for HostReadSyncer
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Mutably borrows from an owned value. Read more