pub enum ZoeChallengeResult {
Accepted,
Next,
Warning(ZoeChallengeWarning),
Rejected(ZoeChallengeRejection),
Error(String),
Unknown {
discriminant: u32,
data: Vec<u8>,
},
}Expand description
Forward-compatible result system for challenge verification
After verifying challenge responses, the server sends back results indicating which proofs succeeded or failed. This allows clients to understand the verification status and take appropriate action.
Variants§
Accepted
The challanges have been accepted.
Next
This challenge has been accepted, but there is another challenge to come and perform. After this read for another ZoeChallenge.
Warning(ZoeChallengeWarning)
The server wants to warn the client and potentially the user about a possible issue. The client should consider the warning and maybe inform the user about it. But other than that it should continue by waiting for another result. Can be sent multiple times for different problems.
Rejected(ZoeChallengeRejection)
The challenge has been rejected The connection will be closed. A message might be provided to explain why and what to do before trying again.
Error(String)
An error occured (on the server side). The connection will be closed. The error should probably be shown to the user to allow them to figure out what went wrong before trying again.
Unknown
Unknown result type for forward compatibility
Trait Implementations§
Source§impl Clone for ZoeChallengeResult
impl Clone for ZoeChallengeResult
Source§fn clone(&self) -> ZoeChallengeResult
fn clone(&self) -> ZoeChallengeResult
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more