#[non_exhaustive]
pub enum UploadSessionAppendError {
NotFound,
IncorrectOffset(UploadSessionOffsetError),
Closed,
NotClosed,
TooLarge,
ConcurrentSessionInvalidOffset,
ConcurrentSessionInvalidDataSize,
PayloadTooLarge,
ContentHashMismatch,
Other,
}
dbx_files
only.Variants (Non-exhaustive)
This enum is marked as non-exhaustive
NotFound
The upload session ID was not found or has expired. Upload sessions are valid for 7 days.
IncorrectOffset(UploadSessionOffsetError)
The specified offset was incorrect. See the value for the correct offset. This error may occur when a previous request was received and processed successfully but the client did not receive the response, e.g. due to a network error.
Closed
You are attempting to append data to an upload session that has already been closed (i.e. committed).
NotClosed
The session must be closed before calling upload_session/finish_batch.
TooLarge
You can not append to the upload session because the size of a file should not reach the max file size limit (i.e. 350GB).
ConcurrentSessionInvalidOffset
For concurrent upload sessions, offset needs to be multiple of 4194304 bytes.
ConcurrentSessionInvalidDataSize
For concurrent upload sessions, only chunks with size multiple of 4194304 bytes can be uploaded.
PayloadTooLarge
The request payload must be at most 150 MB.
ContentHashMismatch
The content received by the Dropbox server in this call does not match the provided content hash.
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 UploadSessionAppendError
impl Clone for UploadSessionAppendError
sourcefn clone(&self) -> UploadSessionAppendError
fn clone(&self) -> UploadSessionAppendError
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 UploadSessionAppendError
impl Debug for UploadSessionAppendError
sourceimpl<'de> Deserialize<'de> for UploadSessionAppendError
impl<'de> Deserialize<'de> for UploadSessionAppendError
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 UploadSessionAppendError
impl Display for UploadSessionAppendError
sourceimpl Error for UploadSessionAppendError
impl Error for UploadSessionAppendError
1.30.0 · 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<UploadSessionAppendError> for UploadSessionAppendError
impl PartialEq<UploadSessionAppendError> for UploadSessionAppendError
sourcefn eq(&self, other: &UploadSessionAppendError) -> bool
fn eq(&self, other: &UploadSessionAppendError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UploadSessionAppendError) -> bool
fn ne(&self, other: &UploadSessionAppendError) -> bool
This method tests for !=
.
sourceimpl Serialize for UploadSessionAppendError
impl Serialize for UploadSessionAppendError
impl Eq for UploadSessionAppendError
impl StructuralEq for UploadSessionAppendError
impl StructuralPartialEq for UploadSessionAppendError
Auto Trait Implementations
impl RefUnwindSafe for UploadSessionAppendError
impl Send for UploadSessionAppendError
impl Sync for UploadSessionAppendError
impl Unpin for UploadSessionAppendError
impl UnwindSafe for UploadSessionAppendError
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