pub struct Config<DB, R>where
DB: Database,
R: CompactDbResolver<DB>,{
pub context: DB::Context,
pub resolver: R,
pub target: Target<DB::Family, DB::Digest>,
pub db_config: DB::Config,
}Expand description
Configuration for compact synchronization into a compact-storage database.
Fields§
§context: DB::ContextRuntime context for creating database components.
resolver: RSource resolver for fetching compact authenticated state.
target: Target<DB::Family, DB::Digest>Sync target (root digest and total leaf count).
db_config: DB::ConfigDatabase-specific configuration.
Auto Trait Implementations§
impl<DB, R> Freeze for Config<DB, R>
impl<DB, R> RefUnwindSafe for Config<DB, R>where
<DB as Database>::Context: RefUnwindSafe,
R: RefUnwindSafe,
<DB as Database>::Config: RefUnwindSafe,
<DB as Database>::Digest: RefUnwindSafe,
<DB as Database>::Family: RefUnwindSafe,
impl<DB, R> Send for Config<DB, R>
impl<DB, R> Sync for Config<DB, R>
impl<DB, R> Unpin for Config<DB, R>
impl<DB, R> UnsafeUnpin for Config<DB, R>where
<DB as Database>::Context: UnsafeUnpin,
R: UnsafeUnpin,
<DB as Database>::Config: UnsafeUnpin,
<DB as Database>::Digest: UnsafeUnpin,
impl<DB, R> UnwindSafe for Config<DB, R>where
<DB as Database>::Context: UnwindSafe,
R: UnwindSafe,
<DB as Database>::Config: UnwindSafe,
<DB as Database>::Digest: UnwindSafe,
<DB as Database>::Family: UnwindSafe,
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> 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