[][src]Enum dropbox_sdk::files::UploadSessionLookupError

#[non_exhaustive]pub enum UploadSessionLookupError {
    NotFound,
    IncorrectOffset(UploadSessionOffsetError),
    Closed,
    NotClosed,
    TooLarge,
    ConcurrentSessionInvalidOffset,
    ConcurrentSessionInvalidDataSize,
    Other,
}
This is supported on crate feature dbx_files only.

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound

The upload session ID was not found or has expired. Upload sessions are valid for 48 hours.

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.

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

impl Clone for UploadSessionLookupError[src]

impl Debug for UploadSessionLookupError[src]

impl<'de> Deserialize<'de> for UploadSessionLookupError[src]

impl Display for UploadSessionLookupError[src]

impl Error for UploadSessionLookupError[src]

impl PartialEq<UploadSessionLookupError> for UploadSessionLookupError[src]

impl Serialize for UploadSessionLookupError[src]

impl StructuralPartialEq for UploadSessionLookupError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.