Struct cyfs_bdt::MemTracker
source · [−]pub struct MemTracker(_);Implementations
sourceimpl MemTracker
impl MemTracker
Trait Implementations
sourceimpl Clone for MemTracker
impl Clone for MemTracker
sourcefn clone(&self) -> MemTracker
fn clone(&self) -> MemTracker
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl NamedDataCache for MemTracker
impl NamedDataCache for MemTracker
fn clone(&self) -> Box<dyn NamedDataCache>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn insert_file<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 InsertFileRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn remove_file<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 RemoveFileRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn file_update_quick_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 FileUpdateQuickhashRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_file_by_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 GetFileByHashRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<FileCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_file_by_file_id<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 GetFileByFileIdRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<FileCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_files_by_quick_hash<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 GetFileByQuickHashRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<FileCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_files_by_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 GetFileByChunkRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<FileCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_dirs_by_file<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 GetDirByFileRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<FileDirRef>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn insert_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 InsertChunkRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn remove_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 RemoveChunkRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn update_chunk_state<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 UpdateChunkStateRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<ChunkState>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn update_chunk_ref_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 UpdateChunkRefsRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn exists_chunks<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 ExistsChunkRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<bool>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 GetChunkRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Option<ChunkCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_chunks<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 Vec<GetChunkRequest>
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<Option<ChunkCacheData>>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_chunk_ref_objects<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 GetChunkRefObjectsRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<ChunkObjectRef>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
sourceimpl TrackerCache for MemTracker
impl TrackerCache for MemTracker
fn clone(&self) -> Box<dyn TrackerCache>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn add_position<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 AddTrackerPositonRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn remove_position<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 RemoveTrackerPositionRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<usize>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
fn get_position<'life0, 'life1, 'async_trait>(
&'life0 self,
req: &'life1 GetTrackerPositionRequest
) -> Pin<Box<dyn Future<Output = BuckyResult<Vec<TrackerPositionCacheData>>> + Send + 'async_trait>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output; where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Auto Trait Implementations
impl RefUnwindSafe for MemTracker
impl Send for MemTracker
impl Sync for MemTracker
impl Unpin for MemTracker
impl UnwindSafe for MemTracker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more