pub enum RefreshError {
Show 21 variants
InvalidUrl(String),
ScanSourceError(SourcesListError),
UnsupportedProtocol(String),
DownloadFailed(Option<SingleDownloadError>),
TopicsError(OmaTopicsError),
NoInReleaseFile(String),
JoinError(JoinError),
ChecksumError(ChecksumError),
FailedToOperateDirOrFile(String, Error),
InReleaseParseError(PathBuf, InReleaseError),
ReadDownloadDir(String, Error),
AhoCorasickBuilder(BuildError),
ReplaceAll(Error),
SetLock(Errno),
SetLockWithProcess(String, i32),
DuplicateComponents(Box<str>, String),
SourceListsEmpty,
OperateFile(PathBuf, Error),
WrongThreadCount(usize),
DownloadManagerBuilderError(BuilderError),
NoMetadataToDownload,
}Variants§
InvalidUrl(String)
ScanSourceError(SourcesListError)
UnsupportedProtocol(String)
DownloadFailed(Option<SingleDownloadError>)
TopicsError(OmaTopicsError)
NoInReleaseFile(String)
JoinError(JoinError)
ChecksumError(ChecksumError)
FailedToOperateDirOrFile(String, Error)
InReleaseParseError(PathBuf, InReleaseError)
ReadDownloadDir(String, Error)
AhoCorasickBuilder(BuildError)
ReplaceAll(Error)
SetLock(Errno)
SetLockWithProcess(String, i32)
DuplicateComponents(Box<str>, String)
SourceListsEmpty
OperateFile(PathBuf, Error)
WrongThreadCount(usize)
DownloadManagerBuilderError(BuilderError)
NoMetadataToDownload
Trait Implementations§
Source§impl Debug for RefreshError
impl Debug for RefreshError
Source§impl Display for RefreshError
impl Display for RefreshError
Source§impl Error for RefreshError
impl Error for RefreshError
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<BuildError> for RefreshError
impl From<BuildError> for RefreshError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<ChecksumError> for RefreshError
impl From<ChecksumError> for RefreshError
Source§fn from(source: ChecksumError) -> Self
fn from(source: ChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for RefreshError
impl From<JoinError> for RefreshError
Source§impl From<OmaTopicsError> for RefreshError
impl From<OmaTopicsError> for RefreshError
Source§fn from(source: OmaTopicsError) -> Self
fn from(source: OmaTopicsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RefreshError
impl !RefUnwindSafe for RefreshError
impl Send for RefreshError
impl Sync for RefreshError
impl Unpin for RefreshError
impl !UnwindSafe for RefreshError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.