#[non_exhaustive]pub enum UploadSessionLookupError {
NotFound,
IncorrectOffset(UploadSessionOffsetError),
Closed,
NotClosed,
TooLarge,
ConcurrentSessionInvalidOffset,
ConcurrentSessionInvalidDataSize,
PayloadTooLarge,
Other,
}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.
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§
source§impl Clone for UploadSessionLookupError
Available on crate feature dbx_files only.
impl Clone for UploadSessionLookupError
dbx_files only.source§fn clone(&self) -> UploadSessionLookupError
fn clone(&self) -> UploadSessionLookupError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UploadSessionLookupError
Available on crate feature dbx_files only.
impl Debug for UploadSessionLookupError
dbx_files only.source§impl<'de> Deserialize<'de> for UploadSessionLookupError
Available on crate feature dbx_files only.
impl<'de> Deserialize<'de> for UploadSessionLookupError
dbx_files only.source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Display for UploadSessionLookupError
Available on crate feature dbx_files only.
impl Display for UploadSessionLookupError
dbx_files only.source§impl Error for UploadSessionLookupError
Available on crate feature dbx_files only.
impl Error for UploadSessionLookupError
dbx_files only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<UploadSessionLookupError> for UploadSessionAppendError
Available on crate feature dbx_files only.
impl From<UploadSessionLookupError> for UploadSessionAppendError
dbx_files only.source§fn from(parent: UploadSessionLookupError) -> Self
fn from(parent: UploadSessionLookupError) -> Self
source§impl PartialEq for UploadSessionLookupError
Available on crate feature dbx_files only.
impl PartialEq for UploadSessionLookupError
dbx_files only.source§fn eq(&self, other: &UploadSessionLookupError) -> bool
fn eq(&self, other: &UploadSessionLookupError) -> bool
self and other values to be equal, and is used
by ==.source§impl Serialize for UploadSessionLookupError
Available on crate feature dbx_files only.
impl Serialize for UploadSessionLookupError
dbx_files only.impl Eq for UploadSessionLookupError
dbx_files only.impl StructuralEq for UploadSessionLookupError
dbx_files only.impl StructuralPartialEq for UploadSessionLookupError
dbx_files only.