pub enum SharedErrorKind {
Show 35 variants
PathContainsEmptyFileName,
PathTaken,
RootNonexistent,
FileNonexistent,
FileNameContainsSlash,
RootModificationInvalid,
FileNameEmpty,
FileParentNonexistent,
FileNotFolder,
FileNotDocument,
SignatureInvalid,
WrongPublicKey,
SignatureInTheFuture(u64),
SignatureExpired(u64),
BincodeError(String),
Encryption(Error),
HmacCreationError(InvalidKeyLength),
Decryption(Error),
HmacValidationError(MacError),
ParseError(Error),
ShareNonexistent,
DuplicateShare,
SharedSecretUnexpectedSize,
SharedSecretError(Error),
ValidationFailure(ValidationFailure),
OldVersionIncorrect,
OldFileNotFound,
OldVersionRequired,
InsufficientPermission,
DiffMalformed,
HmacModificationInvalid,
DeletedFileUpdated(Uuid),
Io(String),
Db(String),
Unexpected(&'static str),
}
Variants§
PathContainsEmptyFileName
PathTaken
RootNonexistent
FileNonexistent
FileNameContainsSlash
RootModificationInvalid
FileNameEmpty
FileParentNonexistent
FileNotFolder
FileNotDocument
SignatureInvalid
WrongPublicKey
SignatureInTheFuture(u64)
SignatureExpired(u64)
BincodeError(String)
Encryption(Error)
HmacCreationError(InvalidKeyLength)
Decryption(Error)
HmacValidationError(MacError)
ParseError(Error)
ValidationFailure(ValidationFailure)
OldVersionIncorrect
Arises during a call to upsert, when the caller does not have the correct old version of the File they’re trying to modify
OldFileNotFound
Arises during a call to upsert, when the old file is not known to the server
OldVersionRequired
Arises during a call to upsert, when the caller suggests that a file is new, but the id already exists
InsufficientPermission
Arises during a call to upsert, when the person making the request is not an owner of the file or has not signed the update
DiffMalformed
Arises during a call to upsert, when a diff’s new.id != old.id
HmacModificationInvalid
Metas in upsert cannot contain changes to digest
DeletedFileUpdated(Uuid)
Found update to a deleted file
Io(String)
Db(String)
Unexpected(&'static str)
Trait Implementations§
Source§fn clone(&self) -> SharedErrorKind
fn clone(&self) -> SharedErrorKind
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§fn from(kind: SharedErrorKind) -> Self
fn from(kind: SharedErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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