pub struct FarmerCacheWorker<NC>where
NC: Debug,{ /* private fields */ }Expand description
Farmer cache worker used to drive the farmer cache backend
Implementations§
Source§impl<NC> FarmerCacheWorker<NC>where
NC: NodeClient,
impl<NC> FarmerCacheWorker<NC>where
NC: NodeClient,
Trait Implementations§
Auto Trait Implementations§
impl<NC> !RefUnwindSafe for FarmerCacheWorker<NC>
impl<NC> !UnwindSafe for FarmerCacheWorker<NC>
impl<NC> Forget for FarmerCacheWorker<NC>
impl<NC> Freeze for FarmerCacheWorker<NC>where
NC: Freeze,
*const ArcInner<RwLock<PieceCachesState>> is !null: Freeze,
PhantomData<RwLock<PieceCachesState>>: Freeze,
*const ArcInner<PlotCaches> is !null: Freeze,
PhantomData<PlotCaches>: Freeze,
*const ArcInner<Handlers> is !null: Freeze,
PhantomData<Handlers>: Freeze,
*const ArcInner<BoundedInner<WorkerCommand>> is !null: Freeze,
PhantomData<ArcInner<BoundedInner<WorkerCommand>>>: Freeze,
*const ArcInner<FarmerCacheMetrics> is !null: Freeze,
PhantomData<FarmerCacheMetrics>: Freeze,
impl<NC> Move for FarmerCacheWorker<NC>
impl<NC> Send for FarmerCacheWorker<NC>
impl<NC> Sync for FarmerCacheWorker<NC>
impl<NC> Unpin for FarmerCacheWorker<NC>where
NC: Unpin,
*const ArcInner<RwLock<PieceCachesState>> is !null: Unpin,
Align8<usize>: Unpin,
Align8<*mut Inner<()>>: Unpin,
*const LeafNode<KeyWithDistance, FarmerCacheOffset> is !null: Unpin,
Box<(KeyWithDistance, FarmerCacheOffset)>: Unpin,
*const u8 is !null: Unpin,
Arc<dyn PieceCache>: Unpin,
*const ArcInner<PlotCaches> is !null: Unpin,
Arc<dyn PlotCache>: Unpin,
*const ArcInner<Handlers> is !null: Unpin,
Arc<Mutex<RawMutex, Inner<Arc<dyn Fn(&f32) + Sync + Send>>>>: Unpin,
Receiver<WorkerCommand>: Unpin,
*const ArcInner<FarmerCacheMetrics> is !null: Unpin,
Arc<Atomic<u64>>: Unpin,
Arc<Atomic<i64>>: Unpin,
impl<NC> UnsafeUnpin for FarmerCacheWorker<NC>where
NC: UnsafeUnpin,
*const ArcInner<RwLock<PieceCachesState>> is !null: UnsafeUnpin,
PhantomData<RwLock<PieceCachesState>>: UnsafeUnpin,
*const ArcInner<PlotCaches> is !null: UnsafeUnpin,
PhantomData<PlotCaches>: UnsafeUnpin,
*const ArcInner<Handlers> is !null: UnsafeUnpin,
PhantomData<Handlers>: UnsafeUnpin,
*const ArcInner<BoundedInner<WorkerCommand>> is !null: UnsafeUnpin,
PhantomData<ArcInner<BoundedInner<WorkerCommand>>>: UnsafeUnpin,
*const ArcInner<FarmerCacheMetrics> is !null: UnsafeUnpin,
PhantomData<FarmerCacheMetrics>: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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