#[non_exhaustive]pub enum SipAcceptError {
Empty,
InvalidFormat(String),
}Expand description
Errors from parsing an Accept header value.
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.
Empty
The input string was empty or whitespace-only.
InvalidFormat(String)
An entry could not be parsed.
Trait Implementations§
Source§impl Clone for SipAcceptError
impl Clone for SipAcceptError
Source§fn clone(&self) -> SipAcceptError
fn clone(&self) -> SipAcceptError
Returns a duplicate of the value. Read more
1.0.0 · 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 SipAcceptError
impl Debug for SipAcceptError
Source§impl Display for SipAcceptError
impl Display for SipAcceptError
Source§impl Error for SipAcceptError
impl Error for SipAcceptError
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 SipAcceptError
impl PartialEq for SipAcceptError
impl Eq for SipAcceptError
impl StructuralPartialEq for SipAcceptError
Auto Trait Implementations§
impl Freeze for SipAcceptError
impl RefUnwindSafe for SipAcceptError
impl Send for SipAcceptError
impl Sync for SipAcceptError
impl Unpin for SipAcceptError
impl UnsafeUnpin for SipAcceptError
impl UnwindSafe for SipAcceptError
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