pub enum OtaError {
Show 14 variants
Api(String),
Request(Error),
PrNotFound(u32),
ArtifactsNotFound(ArtifactSource),
NoToken,
Unauthorized,
InsufficientScopes(ScopeError),
InsufficientSpace(u64),
Io(Error),
Nix(Errno),
TlsConfig(String),
ZipError(ZipError),
DeploymentError(String),
VersionParse(VersionError),
}Expand description
Error types that can occur during OTA operations.
Variants§
Api(String)
GitHub API returned an error response
Request(Error)
HTTP request failed during communication with GitHub
PrNotFound(u32)
The specified pull request number was not found in the repository
ArtifactsNotFound(ArtifactSource)
No build artifacts found for the specified source
NoToken
GitHub token was not provided
GitHub token is invalid or has been revoked — re-authentication required
InsufficientScopes(ScopeError)
GitHub token is missing one or more required OAuth scopes
The token was accepted by GitHub but lacks the permissions needed for OTA operations. Re-authentication with the correct scopes is required.
InsufficientSpace(u64)
Insufficient disk space available for download (requires 100MB minimum)
Io(Error)
File system I/O operation failed
Nix(Errno)
System-level error from nix library
TlsConfig(String)
TLS/SSL configuration failed when setting up HTTPS client
ZipError(ZipError)
Failed to extract files from ZIP archive
DeploymentError(String)
Deployment process failed after successful download
VersionParse(VersionError)
Failed to parse version string
Trait Implementations§
Source§impl Error for OtaError
impl Error for OtaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<ScopeError> for OtaError
impl From<ScopeError> for OtaError
Source§fn from(source: ScopeError) -> Self
fn from(source: ScopeError) -> Self
Source§impl From<VersionError> for OtaError
impl From<VersionError> for OtaError
Source§fn from(source: VersionError) -> Self
fn from(source: VersionError) -> Self
Auto Trait Implementations§
impl Freeze for OtaError
impl !RefUnwindSafe for OtaError
impl Send for OtaError
impl Sync for OtaError
impl Unpin for OtaError
impl !UnwindSafe for OtaError
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.