Struct cyfs_bdt::ResourceManager
source · [−]pub struct ResourceManager(_);Implementations
sourceimpl ResourceManager
impl ResourceManager
pub fn new(owner: Option<ResourceManager>) -> Self
pub fn alloc_memory(&self, len: usize)
pub fn free_memory(&self, len: usize)
pub fn use_downstream(&self, len: usize)
pub fn use_upstream(&self, len: usize)
pub fn use_cpu(&self, len: u64)
pub fn usage(&self) -> ResourceUsage
pub fn quota(&self) -> ResourceQuota
pub fn aggregate(&self)
pub fn schedule(&self, _quota: ResourceQuota) -> BuckyResult<()>
pub fn add_child(&self, child: &ResourceManager) -> BuckyResult<()>
pub fn remove_child(&self, child: &ResourceManager) -> BuckyResult<()>
Trait Implementations
sourceimpl Clone for ResourceManager
impl Clone for ResourceManager
sourcefn clone(&self) -> ResourceManager
fn clone(&self) -> ResourceManager
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 ResourceManager
impl Send for ResourceManager
impl Sync for ResourceManager
impl Unpin for ResourceManager
impl UnwindSafe for ResourceManager
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