pub enum SignError {
Header(ToStrError),
NewHeader(InvalidHeaderValue),
RequiredError(RequiredError),
Host(String),
BodyPresent,
Canceled,
}
Variants§
Header(ToStrError)
An error occurred when reading the request’s headers
NewHeader(InvalidHeaderValue)
An error occured when adding a new header
RequiredError(RequiredError)
Some headers were marked as required, but are missing
Host(String)
Missing host
BodyPresent
Canceled
Trait Implementations§
source§impl Error for SignError
impl Error for SignError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 From<InvalidHeaderValue> for SignError
impl From<InvalidHeaderValue> for SignError
source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Converts to this type from the input type.
source§impl From<RequiredError> for SignError
impl From<RequiredError> for SignError
source§fn from(source: RequiredError) -> Self
fn from(source: RequiredError) -> Self
Converts to this type from the input type.
source§impl From<ToStrError> for SignError
impl From<ToStrError> for SignError
source§fn from(source: ToStrError) -> Self
fn from(source: ToStrError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SignError
impl RefUnwindSafe for SignError
impl Send for SignError
impl Sync for SignError
impl Unpin for SignError
impl UnwindSafe for SignError
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