pub enum AddToWhitelistError {
RequestFailure(Error),
InvalidHeaderValue(InvalidHeaderValue),
UnexpectedStatus(StatusCode),
Status500 {
error: String,
},
}
Variants§
RequestFailure(Error)
InvalidHeaderValue(InvalidHeaderValue)
UnexpectedStatus(StatusCode)
Status500
Implementations§
source§impl AddToWhitelistError
impl AddToWhitelistError
pub fn to_whitelist_endpoint_error(&self) -> Option<WhitelistEndpointError>
Trait Implementations§
source§impl From<Error> for AddToWhitelistError
impl From<Error> for AddToWhitelistError
source§fn from(error: Error) -> AddToWhitelistError
fn from(error: Error) -> AddToWhitelistError
Converts to this type from the input type.
source§impl From<InvalidHeaderValue> for AddToWhitelistError
impl From<InvalidHeaderValue> for AddToWhitelistError
source§fn from(error: InvalidHeaderValue) -> AddToWhitelistError
fn from(error: InvalidHeaderValue) -> AddToWhitelistError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AddToWhitelistError
impl Send for AddToWhitelistError
impl Sync for AddToWhitelistError
impl Unpin for AddToWhitelistError
impl !UnwindSafe for AddToWhitelistError
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