pub enum InvalidRpcUrl {
NotHttpScheme,
UnsecureHttpNotAllowed,
InvalidUri,
}Expand description
Possible errors for invalid RPC URLs
Variants§
NotHttpScheme
Error when the URL scheme is not HTTP or HTTPS
UnsecureHttpNotAllowed
Error when insecure HTTP URLs are used without explicit permission
InvalidUri
Error when the provided URL is invalid
Trait Implementations§
Source§impl Debug for InvalidRpcUrl
impl Debug for InvalidRpcUrl
Source§impl Display for InvalidRpcUrl
impl Display for InvalidRpcUrl
Source§impl Error for InvalidRpcUrl
impl Error for InvalidRpcUrl
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 From<InvalidRpcUrl> for Error
impl From<InvalidRpcUrl> for Error
Source§fn from(source: InvalidRpcUrl) -> Self
fn from(source: InvalidRpcUrl) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InvalidRpcUrl
impl RefUnwindSafe for InvalidRpcUrl
impl Send for InvalidRpcUrl
impl Sync for InvalidRpcUrl
impl Unpin for InvalidRpcUrl
impl UnwindSafe for InvalidRpcUrl
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