Struct cyfs_bdt::ResourceQuota
source · [−]pub struct ResourceQuota(_);Implementations
sourceimpl ResourceQuota
impl ResourceQuota
pub fn new() -> Self
pub fn add_child(
&self,
remote: &DeviceId,
task: StatisticTaskPtr
) -> BuckyResult<()>
pub fn remove_child(&self, remote: &DeviceId) -> BuckyResult<()>
pub fn get_child(&self, remote: &DeviceId) -> Option<StatisticTaskPtr>
pub fn count(&self) -> usize
Trait Implementations
sourceimpl Clone for ResourceQuota
impl Clone for ResourceQuota
sourcefn clone(&self) -> ResourceQuota
fn clone(&self) -> ResourceQuota
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
Auto Trait Implementations
impl RefUnwindSafe for ResourceQuota
impl Send for ResourceQuota
impl Sync for ResourceQuota
impl Unpin for ResourceQuota
impl UnwindSafe for ResourceQuota
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