pub enum PortableSourceError {
Show 13 variants
Io(Error),
Reqwest(Error),
Json(Error),
Registry(String),
Url(ParseError),
Config {
message: String,
},
GpuDetection {
message: String,
},
Installation {
message: String,
},
Repository {
message: String,
},
Environment {
message: String,
},
Command {
message: String,
},
InvalidPath {
path: String,
},
MissingDependency {
dependency: String,
},
}
Expand description
Main error type for PortableSource operations
Variants§
Io(Error)
Reqwest(Error)
Json(Error)
Registry(String)
Url(ParseError)
Config
GpuDetection
Installation
Repository
Environment
Command
InvalidPath
MissingDependency
Implementations§
Source§impl PortableSourceError
impl PortableSourceError
pub fn config(message: impl Into<String>) -> Self
pub fn gpu_detection(message: impl Into<String>) -> Self
pub fn installation(message: impl Into<String>) -> Self
pub fn repository(message: impl Into<String>) -> Self
pub fn environment(message: impl Into<String>) -> Self
pub fn command(message: impl Into<String>) -> Self
pub fn invalid_path(path: impl Into<String>) -> Self
pub fn missing_dependency(dependency: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for PortableSourceError
impl Debug for PortableSourceError
Source§impl Display for PortableSourceError
impl Display for PortableSourceError
Source§impl Error for PortableSourceError
impl Error for PortableSourceError
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 PortableSourceError
impl From<Error> for PortableSourceError
Source§impl From<Error> for PortableSourceError
impl From<Error> for PortableSourceError
Source§impl From<Error> for PortableSourceError
impl From<Error> for PortableSourceError
Source§impl From<ParseError> for PortableSourceError
impl From<ParseError> for PortableSourceError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PortableSourceError
impl !RefUnwindSafe for PortableSourceError
impl Send for PortableSourceError
impl Sync for PortableSourceError
impl Unpin for PortableSourceError
impl !UnwindSafe for PortableSourceError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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