pub enum PlatformError {
ApiError {
status: StatusCode,
},
DownloadError(DownloadError),
InvalidInput(String),
InvalidResponse,
NoMatchingAssets {
available_assets: Vec<String>,
},
NoRelease {
tag: Option<String>,
},
RepositoryNotFound {
owner: String,
repo: String,
},
}Variants§
ApiError
Fields
§
status: StatusCodeDownloadError(DownloadError)
InvalidInput(String)
InvalidResponse
NoMatchingAssets
NoRelease
RepositoryNotFound
Trait Implementations§
Source§impl Debug for PlatformError
impl Debug for PlatformError
Source§impl Display for PlatformError
impl Display for PlatformError
Source§impl From<DownloadError> for PlatformError
impl From<DownloadError> for PlatformError
Source§fn from(value: DownloadError) -> Self
fn from(value: DownloadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PlatformError
impl !RefUnwindSafe for PlatformError
impl Send for PlatformError
impl Sync for PlatformError
impl Unpin for PlatformError
impl !UnwindSafe for PlatformError
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