Struct cgroups_rs::rdma::RdmaController
source · [−]pub struct RdmaController { /* private fields */ }Expand description
A controller that allows controlling the rdma subsystem of a Cgroup.
In essence, using this controller one can limit the RDMA/IB specific resources that the tasks in the control group can use.
Implementations
Trait Implementations
sourceimpl Clone for RdmaController
impl Clone for RdmaController
sourcefn clone(&self) -> RdmaController
fn clone(&self) -> RdmaController
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 moresourceimpl Debug for RdmaController
impl Debug for RdmaController
sourceimpl<'a> From<&'a Subsystem> for &'a RdmaController
impl<'a> From<&'a Subsystem> for &'a RdmaController
sourcefn from(sub: &'a Subsystem) -> &'a RdmaController
fn from(sub: &'a Subsystem) -> &'a RdmaController
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for RdmaController
impl Send for RdmaController
impl Sync for RdmaController
impl Unpin for RdmaController
impl UnwindSafe for RdmaController
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Controller for Twhere
T: ControllerInternal,
impl<T> Controller for Twhere
T: ControllerInternal,
sourcefn apply(&self, res: &Resources) -> Result<(), Error>
fn apply(&self, res: &Resources) -> Result<(), Error>
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
sourcefn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
fn add_task_by_tgid(&self, pid: &CgroupPid) -> Result<(), Error>
Attach a task to this controller by thread group id.
sourcefn tasks(&self) -> Vec<CgroupPid, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
fn tasks(&self) -> Vec<CgroupPid, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Get the list of tasks that this controller has.