pub enum ChokeAction {
Unchoke(usize),
Choke(usize),
NoChange(usize),
}Expand description
Action to take for a peer during choke rotation
Variants§
Unchoke(usize)
Unchoke peer at index
Choke(usize)
Choke peer at index
NoChange(usize)
No action needed for this peer
Trait Implementations§
Source§impl Clone for ChokeAction
impl Clone for ChokeAction
Source§fn clone(&self) -> ChokeAction
fn clone(&self) -> ChokeAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ChokeAction
impl Debug for ChokeAction
Source§impl PartialEq for ChokeAction
impl PartialEq for ChokeAction
impl StructuralPartialEq for ChokeAction
Auto Trait Implementations§
impl Freeze for ChokeAction
impl RefUnwindSafe for ChokeAction
impl Send for ChokeAction
impl Sync for ChokeAction
impl Unpin for ChokeAction
impl UnsafeUnpin for ChokeAction
impl UnwindSafe for ChokeAction
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