pub enum CheaterDetection {
Disabled,
FirstCheater,
AllCheaters,
}Expand description
The type of cheater detection to use.
Variants§
Disabled
Disable cheater detection. Fast in case there are invalid shares.
FirstCheater
Detect the first cheater and stop. Performance will depend on where the cheater’s share is in the list.
AllCheaters
Detect all cheaters. Slower since all shares must be verified. Performance will be proportional on the size of participants.
Auto Trait Implementations§
impl Freeze for CheaterDetection
impl RefUnwindSafe for CheaterDetection
impl Send for CheaterDetection
impl Sync for CheaterDetection
impl Unpin for CheaterDetection
impl UnsafeUnpin for CheaterDetection
impl UnwindSafe for CheaterDetection
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