[−][src]Enum tough::error::Error
The error type for this library.
Variants (Non-exhaustive)
The library failed to create a file in the datastore.
The library failed to open a file in the datastore.
The library failed to remove a file in the datastore.
The library failed to serialize an object to JSON to the datastore.
A metadata file has expired.
A downloaded target's checksum does not match the checksum listed in the repository metadata.
The library failed to create a URL from a base URL and a path.
Fields of JoinUrl
Fields of KeyRejected
source: KeyRejected
backtrace: Backtrace
Fields of KeysNotFoundInRoot
backtrace: Backtrace
Fields of KeyUnrecognized
backtrace: Backtrace
A file's maximum size exceeded a limit set by the consumer of this library or the metadata.
The maximum root updates setting was exceeded.
A required reference to a metadata file is missing from a metadata file.
Unable to determine file name (path ends in '..' or is '/')
Fields of NoRoleKeysinRoot
role: String
A downloaded metadata file has an older version than a previously downloaded metadata file.
The library failed to parse a metadata file, either because it was not valid JSON or it did not conform to the expected schema.
The library failed to parse the trusted root metadata file, either because it was not valid
JSON or it did not conform to the expected schema. The trusted root metadata file is the
file is either the root
argument passed to Repository::load
, or the most recently
cached and validated root metadata file.
Failed to parse a URL provided to Repository::load
.
Fields of ParseUrl
Path isn't a valid UTF8 string
Fields of Sign
source: Unspecified
backtrace: Backtrace
Fields of SigningKeysNotFound
role: String
System time is behaving irrationally, went back in time
A transport error occurred while fetching a URL.
A metadata file could not be verified.
The trusted root metadata file could not be verified.
A fetched metadata file did not have the version we expected it to have.
Fields of TargetNotFound
target_url: String
Fields of DelegatedRolesNotConsistent
name: String
Target doesn't have proper permissions from parent delegations
Fields of InvalidPath
source: Error
Fields of RoleNotInMeta
name: String
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error where
Self: Debug + Display,
[src]
Self: Debug + Display,
fn description(&self) -> &str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
impl ErrorCompat for Error
[src]
impl From<Error> for Error
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error,
[src]
T: 'static + Error,
fn as_error_source(&self) -> &(dyn Error + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,