pub enum FetchMidpointError {
UserInput(UserInputError),
RateLimit(RateLimitError),
RequestRejected(RequestRejectedError),
Transport(TransportError),
UnexpectedResponse(UnexpectedResponseError),
}Variants§
UserInput(UserInputError)
RateLimit(RateLimitError)
RequestRejected(RequestRejectedError)
Transport(TransportError)
UnexpectedResponse(UnexpectedResponseError)
Implementations§
Trait Implementations§
Source§impl Clone for FetchMidpointError
impl Clone for FetchMidpointError
Source§fn clone(&self) -> FetchMidpointError
fn clone(&self) -> FetchMidpointError
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 moreSource§impl Debug for FetchMidpointError
impl Debug for FetchMidpointError
Source§impl Display for FetchMidpointError
impl Display for FetchMidpointError
Source§impl Error for FetchMidpointError
impl Error for FetchMidpointError
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 From<FetchMidpointError> for Error
impl From<FetchMidpointError> for Error
Source§fn from(source: FetchMidpointError) -> Self
fn from(source: FetchMidpointError) -> Self
Converts to this type from the input type.
Source§impl From<RateLimitError> for FetchMidpointError
impl From<RateLimitError> for FetchMidpointError
Source§fn from(source: RateLimitError) -> Self
fn from(source: RateLimitError) -> Self
Converts to this type from the input type.
Source§impl From<RequestRejectedError> for FetchMidpointError
impl From<RequestRejectedError> for FetchMidpointError
Source§fn from(source: RequestRejectedError) -> Self
fn from(source: RequestRejectedError) -> Self
Converts to this type from the input type.
Source§impl From<TransportError> for FetchMidpointError
impl From<TransportError> for FetchMidpointError
Source§fn from(source: TransportError) -> Self
fn from(source: TransportError) -> Self
Converts to this type from the input type.
Source§impl From<UnexpectedResponseError> for FetchMidpointError
impl From<UnexpectedResponseError> for FetchMidpointError
Source§fn from(source: UnexpectedResponseError) -> Self
fn from(source: UnexpectedResponseError) -> Self
Converts to this type from the input type.
Source§impl From<UserInputError> for FetchMidpointError
impl From<UserInputError> for FetchMidpointError
Source§fn from(source: UserInputError) -> Self
fn from(source: UserInputError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FetchMidpointError
impl RefUnwindSafe for FetchMidpointError
impl Send for FetchMidpointError
impl Sync for FetchMidpointError
impl Unpin for FetchMidpointError
impl UnsafeUnpin for FetchMidpointError
impl UnwindSafe for FetchMidpointError
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