#[non_exhaustive]
pub enum UploadSessionLookupError {
NotFound,
IncorrectOffset(UploadSessionOffsetError),
Closed,
NotClosed,
TooLarge,
ConcurrentSessionInvalidOffset,
ConcurrentSessionInvalidDataSize,
PayloadTooLarge,
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.
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 UploadSessionLookupError
impl Clone for UploadSessionLookupError
sourcefn clone(&self) -> UploadSessionLookupError
fn clone(&self) -> UploadSessionLookupError
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 UploadSessionLookupError
impl Debug for UploadSessionLookupError
sourceimpl<'de> Deserialize<'de> for UploadSessionLookupError
impl<'de> Deserialize<'de> for UploadSessionLookupError
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 UploadSessionLookupError
impl Display for UploadSessionLookupError
sourceimpl Error for UploadSessionLookupError
impl Error for UploadSessionLookupError
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<UploadSessionLookupError> for UploadSessionLookupError
impl PartialEq<UploadSessionLookupError> for UploadSessionLookupError
sourcefn eq(&self, other: &UploadSessionLookupError) -> bool
fn eq(&self, other: &UploadSessionLookupError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UploadSessionLookupError) -> bool
fn ne(&self, other: &UploadSessionLookupError) -> bool
This method tests for !=
.
sourceimpl Serialize for UploadSessionLookupError
impl Serialize for UploadSessionLookupError
impl StructuralPartialEq for UploadSessionLookupError
Auto Trait Implementations
impl RefUnwindSafe for UploadSessionLookupError
impl Send for UploadSessionLookupError
impl Sync for UploadSessionLookupError
impl Unpin for UploadSessionLookupError
impl UnwindSafe for UploadSessionLookupError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more