pub enum CloudflareError {
Http(String),
Api(String),
WranglerNotInstalled,
WranglerFailed(String),
NotLoggedIn,
Parse(String),
ConfigDirNotFound,
Io(Error),
Json(Error),
InsufficientPermissions(String),
}Expand description
Errors returned by Cloudflare admin operations.
Variants§
Http(String)
An HTTP request failed before Cloudflare returned a structured API response.
Api(String)
Cloudflare returned one or more API-level errors.
WranglerNotInstalled
The wrangler executable was not available on PATH.
WranglerFailed(String)
A wrangler command exited unsuccessfully.
NotLoggedIn
Wrangler did not have an authenticated Cloudflare session.
Parse(String)
A response or configuration file could not be parsed.
ConfigDirNotFound
The Cloudflare configuration directory could not be found.
Io(Error)
Filesystem IO failed while reading Cloudflare configuration.
Json(Error)
JSON serialization or deserialization failed.
InsufficientPermissions(String)
The provided API token lacks permissions required by the requested endpoint.
Trait Implementations§
Source§impl Debug for CloudflareError
impl Debug for CloudflareError
Source§impl Display for CloudflareError
impl Display for CloudflareError
Source§impl Error for CloudflareError
impl Error for CloudflareError
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<Error> for CloudflareError
impl From<Error> for CloudflareError
Auto Trait Implementations§
impl !RefUnwindSafe for CloudflareError
impl !UnwindSafe for CloudflareError
impl Freeze for CloudflareError
impl Send for CloudflareError
impl Sync for CloudflareError
impl Unpin for CloudflareError
impl UnsafeUnpin for CloudflareError
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