pub enum Error {
Show 51 variants
NoCache,
NoArchive,
NoOpenFolder,
NoSecretId,
NotFileContent,
AlreadyArchived,
NotArchived,
NotDirectory(PathBuf),
NotFile(PathBuf),
NoDefaultFolder,
NotContact,
NoContactsFolder,
PemEncoding,
InvalidProvider(String),
FileExists(PathBuf),
VaultUnlockFail,
ResponseCode(u16),
RootHashMismatch(CommitHash, CommitHash),
ServerProof,
CacheNotAvailable(Uuid),
ConflictBehind {
summary: Summary,
local: (CommitHash, usize),
remote: (CommitHash, usize),
events: Vec<WriteEvent<'static>>,
},
Conflict {
summary: Summary,
local: (CommitHash, usize),
remote: (CommitHash, usize),
},
NoRootCommit,
NoReturnValue,
NoSession,
InvalidSession,
NotAuthorized,
NoOpenVault,
SecretNotFound(SecretId),
Boxed(Box<dyn Error + Send + Sync>),
Node(Error),
ParseInt(ParseIntError),
ToStr(ToStrError),
Io(Error),
Json(Error),
TryFromSlice(TryFromSliceError),
Core(Error),
Http(Error),
UrlParse(ParseError),
Utf8(Utf8Error),
Base58Decode(Error),
HttpStatus(InvalidStatusCode),
WebSocket(Error),
Address(Error),
Uuid(Error),
Hex(FromHexError),
Peer(Error),
Migrate(Error),
Vcard(Error),
Mpc(Error),
Snow(Error),
}
client
only.Expand description
Errors generated by the client module.
Variants§
NoCache
Error generated if we could not determine a cache directory.
NoArchive
Error generated when an archive folder is not available.
NoOpenFolder
Error generated when an open folder is expected.
NoSecretId
Error generated when secret data does not have an identifier but an existing secret is expected.
NotFileContent
Error generated when a file secret is expected.
AlreadyArchived
Error generated when attempting to archive a secret that is already archived.
NotArchived
Error generated when attempting to unarchive a secret that is not archived.
NotDirectory(PathBuf)
Error generated when a path is not a directory.
NotFile(PathBuf)
Error generated when a path is not a file.
NoDefaultFolder
Error generated when no default folder is available.
NotContact
contacts
only.Error generated when a secret is not a contact secret.
NoContactsFolder
contacts
only.Error generated when a contacts folder is not available.
PemEncoding
Error generated when a PEM-encoded certificate is invalid.
InvalidProvider(String)
Error generated when a provider is not valid.
FileExists(PathBuf)
Error generated when a file already exists.
VaultUnlockFail
Error generated when unlocking a vault failed.
ResponseCode(u16)
Error generated when an unexpected response code is received.
RootHashMismatch(CommitHash, CommitHash)
Error generated when root commit hashes do not match.
ServerProof
Error generated if a server failed to send the expected commit proof header.
CacheNotAvailable(Uuid)
Error generated attempting to access a vault that is not available.
ConflictBehind
Fields
local: (CommitHash, usize)
Commit hash of the local event log.
remote: (CommitHash, usize)
Commit hash of the remote event log.
events: Vec<WriteEvent<'static>>
Events that can be applied after a pull.
Error generated when a conflict is detected where the local
is behind the remote.
Pulling from remote and applying changes afterwards should resolve the conflict.
Conflict
Fields
local: (CommitHash, usize)
Commit hash of the local event log.
remote: (CommitHash, usize)
Commit hash of the remote event log.
Error generated when a conflict is detected that may be resolved by the user.
NoRootCommit
Error generated when a commit tree is expected to have a root.
NoReturnValue
Error generated when a return value is expected from a RPC call but the response did not have a result.
NoSession
Error generated when a session has no been set.
InvalidSession
Error generated when a session has no been set.
NotAuthorized
Error generated when a client receives an unauthorized response.
NoOpenVault
Error generated attempting to make changes to the current vault but no vault is open.
SecretNotFound(SecretId)
Error generated when a secret could not be found.
Boxed(Box<dyn Error + Send + Sync>)
Generic boxed error.
Node(Error)
Error generated by the main node library.
ParseInt(ParseIntError)
Error generated parsing to an integer.
ToStr(ToStrError)
Error generated converting a header to a string.
Io(Error)
Error generated by the io module.
Json(Error)
Error generated by the JSON library.
TryFromSlice(TryFromSliceError)
Error generated attempting to convert from a slice.
Core(Error)
Error generated by the core library.
Http(Error)
Error generated by the HTTP request library.
UrlParse(ParseError)
Error generated attempting to parse a URL.
Utf8(Utf8Error)
Error generated attempting to convert to a UTF-8 string.
Base58Decode(Error)
Error generated decoding a base58 string.
HttpStatus(InvalidStatusCode)
Error generated converting an HTTP status code.
WebSocket(Error)
Error generated by the websocket client.
Address(Error)
Error generated by the address library.
Uuid(Error)
Error generated when converting to a UUID.
Hex(FromHexError)
Error generated when parsing from hex.
Peer(Error)
peer
and non-WebAssembly only.Error generated by the peer library.
Migrate(Error)
migrate
only.Error generated by the migrate library.
Vcard(Error)
contacts
only.Error generated by the vcard library.
Mpc(Error)
Error generated by the MPC library.
Snow(Error)
Error generated by the noise library.