#[non_exhaustive]pub enum Challenge {
Hashcash(HashcashChallenge),
Code(CodeChallenge),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Hashcash(HashcashChallenge)
Code(CodeChallenge)
Trait Implementations§
Source§impl OneofFull for Challenge
impl OneofFull for Challenge
Source§fn descriptor() -> OneofDescriptor
fn descriptor() -> OneofDescriptor
Descriptor object for this oneof.
impl Oneof for Challenge
impl StructuralPartialEq for Challenge
Auto Trait Implementations§
impl !Freeze for Challenge
impl RefUnwindSafe for Challenge
impl Send for Challenge
impl Sync for Challenge
impl Unpin for Challenge
impl UnwindSafe for Challenge
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