Enum dropbox_sdk::files::LockFileError
source · [−]#[non_exhaustive]
pub enum LockFileError {
PathLookup(LookupError),
TooManyWriteOperations,
TooManyFiles,
NoWritePermission,
CannotBeLocked,
FileNotShared,
LockConflict(LockConflictError),
InternalError,
Other,
}
dbx_files
only.Variants (Non-exhaustive)
This enum is marked as non-exhaustive
PathLookup(LookupError)
Could not find the specified resource.
TooManyWriteOperations
There are too many write operations in user’s Dropbox. Please retry this request.
TooManyFiles
There are too many files in one request. Please retry with fewer files.
NoWritePermission
The user does not have permissions to change the lock state or access the file.
CannotBeLocked
Item is a type that cannot be locked.
FileNotShared
Requested file is not currently shared.
LockConflict(LockConflictError)
The user action conflicts with an existing lock on the file.
InternalError
Something went wrong with the job on Dropbox’s end. You’ll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
Other
Catch-all used for unrecognized values returned from the server. Encountering this value typically indicates that this SDK version is out of date.
Trait Implementations
sourceimpl Clone for LockFileError
impl Clone for LockFileError
sourcefn clone(&self) -> LockFileError
fn clone(&self) -> LockFileError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LockFileError
impl Debug for LockFileError
sourceimpl<'de> Deserialize<'de> for LockFileError
impl<'de> Deserialize<'de> for LockFileError
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for LockFileError
impl Display for LockFileError
sourceimpl Error for LockFileError
impl Error for LockFileError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl PartialEq<LockFileError> for LockFileError
impl PartialEq<LockFileError> for LockFileError
sourcefn eq(&self, other: &LockFileError) -> bool
fn eq(&self, other: &LockFileError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LockFileError) -> bool
fn ne(&self, other: &LockFileError) -> bool
This method tests for !=
.
sourceimpl Serialize for LockFileError
impl Serialize for LockFileError
impl Eq for LockFileError
impl StructuralEq for LockFileError
impl StructuralPartialEq for LockFileError
Auto Trait Implementations
impl RefUnwindSafe for LockFileError
impl Send for LockFileError
impl Sync for LockFileError
impl Unpin for LockFileError
impl UnwindSafe for LockFileError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more