#[non_exhaustive]pub enum UploadSessionAppendBatchEntryError {
NotFound,
IncorrectOffset(UploadSessionOffsetError),
Closed,
TooLarge,
ConcurrentSessionInvalidOffset,
ConcurrentSessionInvalidDataSize,
Other,
}sync_routes and 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).
TooLarge
You can not append to the upload session because the size of a file should not exceed the max file size limit (i.e. 2^41 - 2^22 or 2,199,019,061,248 bytes).
ConcurrentSessionInvalidOffset
For concurrent upload sessions, offset needs to be multiple of 2^22 (4,194,304) bytes.
ConcurrentSessionInvalidDataSize
For concurrent upload sessions, only chunks with size multiple of 2^22 (4,194,304) bytes can be uploaded.
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 UploadSessionAppendBatchEntryError
impl Clone for UploadSessionAppendBatchEntryError
Source§fn clone(&self) -> UploadSessionAppendBatchEntryError
fn clone(&self) -> UploadSessionAppendBatchEntryError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for UploadSessionAppendBatchEntryError
impl<'de> Deserialize<'de> for UploadSessionAppendBatchEntryError
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 Error for UploadSessionAppendBatchEntryError
impl Error for UploadSessionAppendBatchEntryError
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
use the Display impl or to_string()
Source§impl PartialEq for UploadSessionAppendBatchEntryError
impl PartialEq for UploadSessionAppendBatchEntryError
Source§fn eq(&self, other: &UploadSessionAppendBatchEntryError) -> bool
fn eq(&self, other: &UploadSessionAppendBatchEntryError) -> bool
self and other values to be equal, and is used by ==.impl Eq for UploadSessionAppendBatchEntryError
impl StructuralPartialEq for UploadSessionAppendBatchEntryError
Auto Trait Implementations§
impl Freeze for UploadSessionAppendBatchEntryError
impl RefUnwindSafe for UploadSessionAppendBatchEntryError
impl Send for UploadSessionAppendBatchEntryError
impl Sync for UploadSessionAppendBatchEntryError
impl Unpin for UploadSessionAppendBatchEntryError
impl UnsafeUnpin for UploadSessionAppendBatchEntryError
impl UnwindSafe for UploadSessionAppendBatchEntryError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.