Enum tower_http_digest::Error [−][src]
#[non_exhaustive]
pub enum Error {
BodyOperation(Box<dyn StdError + Send + Sync + 'static>),
HashMismatch {
expected: String,
got: String,
},
InnerService(Box<dyn StdError + Send + Sync + 'static>),
InvalidDigest,
InvalidDigestHeader,
InvalidHeaderValue(InvalidHeaderValue),
MissingHeader,
ToStr(ToStrError),
UnsupportedDigest,
}
Expand description
Error type
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.
BodyOperation(Box<dyn StdError + Send + Sync + 'static>)
Body operation returned an error
HashMismatch
Hash mismatched
InnerService(Box<dyn StdError + Send + Sync + 'static>)
Inner service returned an error
InvalidDigest
Invalid digest
InvalidDigestHeader
Invalid digest header
InvalidHeaderValue(InvalidHeaderValue)
Tuple Fields
Invalid header value
MissingHeader
Missing digest header
ToStr(ToStrError)
Tuple Fields
0: ToStrError
ToStrError
from the HTTP crate
UnsupportedDigest
Unsupported digest
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more