pub fn disable(&self, mut shares: usize) {
        shares = std::cmp::min(shares, 1000);
        shares = std::cmp::max(shares, 1);
        self.queue.state.set(ControllerStatus::Disabled(shares));
    }
/// Disables the controller.
///
/// Instead, the process being controlled will now have static shares
/// defined by the `shares` argument (between 1 and 1000).
Disables the controller.
Instead, the process being controlled will now have static shares
defined by the `shares` argument (between 1 and 1000).
Disables the controller . Instead the process being controlled will now have static shares defined by the ` shares ` argument ( between 1 and 1000 ) .
pub fn disable(&self, mut shares: usize) {
        shares = std::cmp::min(shares, 1000);
        shares = std::cmp::max(shares, 1);
        self.queue.state.set(ControllerStatus::Disabled(shares));
    }
pub fn disable ( & self , mut shares : usize ) { shares = std :: cmp :: min ( shares , 1000 ) ; shares = std :: cmp :: max ( shares , 1 ) ; self . queue . state . set ( ControllerStatus :: Disabled ( shares ) ) ; }
Disables the controller.
Disables the controller .
&self
shares
usize
&self
shares
usize