pub struct CorestoreBuilder { /* private fields */ }Expand description
Builder for InnerCorstore.
Implementations§
Source§impl CorestoreBuilder
impl CorestoreBuilder
Sourcepub fn primary_key(self, value: PrimaryKey) -> Self
pub fn primary_key(self, value: PrimaryKey) -> Self
The PrimaryKey used to deterministically derive keys for cores owned by this
Corestore
Sourcepub fn storage(self, value: StorageKind) -> Self
pub fn storage(self, value: StorageKind) -> Self
The kind of storage that Corestore will use to store it’s data.
Sourcepub fn core_cache(self, value: CoreCache) -> Self
pub fn core_cache(self, value: CoreCache) -> Self
The place we keep active cores
Trait Implementations§
Source§impl Debug for CorestoreBuilder
impl Debug for CorestoreBuilder
Auto Trait Implementations§
impl !RefUnwindSafe for CorestoreBuilder
impl !UnwindSafe for CorestoreBuilder
impl Forget for CorestoreBuilder
impl Freeze for CorestoreBuilderwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(VerifyingKey, CachedCore)>: Freeze,
impl Move for CorestoreBuilder
impl Send for CorestoreBuilder
impl Sync for CorestoreBuilder
impl Unpin for CorestoreBuilderwhere
*const u8 is !null: Unpin,
Arc<Mutex<HypercoreInnerInner>>: Unpin,
Arc<Mutex<Option<Pin<Box<dyn Future<Output = Result<(), HypercoreError>> + Send>>>>>: Unpin,
Arc<Mutex<Vec<Weak<PeerSyncState>>>>: Unpin,
Arc<Mutex<Vec<Weak<DownloadRange>>>>: Unpin,
Arc<Mutex<BTreeMap<u64, BlockRequestClaim>>>: Unpin,
Arc<Inner<Pin<Box<dyn Future<Output = Result<Hypercore, Arc<Error>>> + Send>>>>: Unpin,
impl UnsafeUnpin for CorestoreBuilderwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(VerifyingKey, CachedCore)>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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