pub enum PhoneAuthenticationError {
QueryExceedsLimit,
InvalidEncoding,
UnknownField,
DuplicateField(&'static str),
MissingField(&'static str),
InvalidCredential {
field: &'static str,
},
InvalidDeviceName,
ResponseExceedsLimit,
Write,
}Expand description
Validation and I/O failures at the authentication HTTP boundary.
Variants§
QueryExceedsLimit
The encoded query is larger than PHONE_AUTHENTICATION_MAX_QUERY_BYTES.
InvalidEncoding
The query is not a canonical, control-free encoded form.
UnknownField
DuplicateField(&'static str)
MissingField(&'static str)
InvalidCredential
A credential violates its byte bound or contains a control character.
InvalidDeviceName
The device name is not a valid DeviceId.
ResponseExceedsLimit
The response exceeds PHONE_AUTHENTICATION_MAX_RESPONSE_BYTES.
Write
Trait Implementations§
Source§impl Clone for PhoneAuthenticationError
impl Clone for PhoneAuthenticationError
Source§fn clone(&self) -> PhoneAuthenticationError
fn clone(&self) -> PhoneAuthenticationError
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 moreimpl Copy for PhoneAuthenticationError
Source§impl Debug for PhoneAuthenticationError
impl Debug for PhoneAuthenticationError
Source§impl Display for PhoneAuthenticationError
impl Display for PhoneAuthenticationError
impl Eq for PhoneAuthenticationError
Source§impl Error for PhoneAuthenticationError
impl Error for PhoneAuthenticationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PhoneAuthenticationError
impl PartialEq for PhoneAuthenticationError
impl StructuralPartialEq for PhoneAuthenticationError
Auto Trait Implementations§
impl Freeze for PhoneAuthenticationError
impl RefUnwindSafe for PhoneAuthenticationError
impl Send for PhoneAuthenticationError
impl Sync for PhoneAuthenticationError
impl Unpin for PhoneAuthenticationError
impl UnsafeUnpin for PhoneAuthenticationError
impl UnwindSafe for PhoneAuthenticationError
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