mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-10 22:38:44 +02:00
chore: update documentation
This commit is contained in:
104 files changed
+4875
-222
No files matched your search
@@ -66,24 +66,35 @@ pub enum Error {
|
||||
/// Temp dir is not on same mount mount. This prevents our updater to rename the AppImage to a temp file.
|
||||
#[error("temp directory is not on the same mount point as the AppImage")]
|
||||
TempDirNotOnSameMountPoint,
|
||||
/// The downloaded archive does not contain a binary for the current target.
|
||||
#[error("binary for the current target not found in the archive")]
|
||||
BinaryNotFoundInArchive,
|
||||
/// Could not create a temporary directory to store the downloaded update.
|
||||
#[error("failed to create temporary directory")]
|
||||
TempDirNotFound,
|
||||
/// The privilege escalation prompt shown before installing a Linux package
|
||||
/// failed or was dismissed by the user.
|
||||
#[error("Authentication failed or was cancelled")]
|
||||
AuthenticationFailed,
|
||||
/// Installing the downloaded `.deb` package failed.
|
||||
#[error("Failed to install .deb package")]
|
||||
DebInstallFailed,
|
||||
/// The package manager could not install the downloaded Linux package.
|
||||
#[error("Failed to install package")]
|
||||
PackageInstallFailed,
|
||||
/// The downloaded update is not in a format the updater can install on the current platform.
|
||||
#[error("invalid updater binary format")]
|
||||
InvalidUpdaterFormat,
|
||||
/// `http` crate errors.
|
||||
#[error(transparent)]
|
||||
Http(#[from] http::Error),
|
||||
/// A request header value is not valid.
|
||||
#[error(transparent)]
|
||||
InvalidHeaderValue(#[from] http::header::InvalidHeaderValue),
|
||||
/// A request header name is not valid.
|
||||
#[error(transparent)]
|
||||
InvalidHeaderName(#[from] http::header::InvalidHeaderName),
|
||||
/// The release publish date could not be formatted as an RFC 3339 string.
|
||||
#[error("Failed to format date")]
|
||||
FormatDate,
|
||||
/// The configured updater endpoint must use a secure protocol like `https`
|
||||
@@ -105,6 +116,7 @@ pub enum Error {
|
||||
"The update signature does not specify the version it was signed for, which `requireSignedVersion` requires. Re-sign and re-publish this release, or disable `requireSignedVersion`."
|
||||
)]
|
||||
MissingSignedVersion,
|
||||
/// Tauri errors.
|
||||
#[error(transparent)]
|
||||
Tauri(#[from] tauri::Error),
|
||||
}
|
||||
@@ -118,4 +130,5 @@ impl Serialize for Error {
|
||||
}
|
||||
}
|
||||
|
||||
/// A [`Result`](std::result::Result) alias whose error type is the updater [`Error`](enum@Error).
|
||||
pub type Result<T> = std::result::Result<T, Error>;
|
||||
Reference in new issue
Block a user