pub struct DefaultGovernor { /* private fields */ }Implementations§
Source§impl DefaultGovernor
impl DefaultGovernor
pub fn new(config: GovernorConfig) -> DefaultGovernor
Trait Implementations§
Source§impl Clone for DefaultGovernor
impl Clone for DefaultGovernor
Source§fn clone(&self) -> DefaultGovernor
fn clone(&self) -> DefaultGovernor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DefaultGovernor
impl Debug for DefaultGovernor
Source§impl Default for DefaultGovernor
impl Default for DefaultGovernor
Source§fn default() -> DefaultGovernor
fn default() -> DefaultGovernor
Returns the “default value” for a type. Read more
Source§impl Governor for DefaultGovernor
impl Governor for DefaultGovernor
fn evaluate(&self, input: GovernorInput) -> GovernorDecision
Auto Trait Implementations§
impl Freeze for DefaultGovernor
impl RefUnwindSafe for DefaultGovernor
impl Send for DefaultGovernor
impl Sync for DefaultGovernor
impl Unpin for DefaultGovernor
impl UnsafeUnpin for DefaultGovernor
impl UnwindSafe for DefaultGovernor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more