pub struct Resolver<E>{ /* private fields */ }
Expand description
Network resolver that fetches operations from a remote server.
Implementations§
Trait Implementations§
Source§impl<E> Resolver for Resolver<E>
impl<E> Resolver for Resolver<E>
type Digest = Digest
type Key = Digest
type Value = Digest
Source§async fn get_operations(
&self,
size: u64,
start_loc: u64,
max_ops: NonZeroU64,
) -> Result<GetOperationsResult<Self::Digest, Self::Key, Self::Value>, SyncError>
async fn get_operations( &self, size: u64, start_loc: u64, max_ops: NonZeroU64, ) -> Result<GetOperationsResult<Self::Digest, Self::Key, Self::Value>, SyncError>
Get the operations starting at
start_loc
in the database, up to max_ops
operations.
Returns the operations and a proof that they were present in the database when it had
size
operations.Auto Trait Implementations§
impl<E> Freeze for Resolver<E>
impl<E> !RefUnwindSafe for Resolver<E>
impl<E> Send for Resolver<E>
impl<E> Sync for Resolver<E>
impl<E> Unpin for Resolver<E>where
E: Unpin,
impl<E> !UnwindSafe for Resolver<E>
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more