[][src]Enum multipart::server::ReadEntryResult

pub enum ReadEntryResult<M: ReadEntry, Entry = MultipartField<M>> {
    Entry(Entry),
    End(M),
    Error(M, Error),
}

Ternary result type returned by ReadEntry::next_entry(), Multipart::into_entry() and MultipartField::next_entry().

Variants

The next entry was found.

No more entries could be read.

An error occurred.

Methods

impl<M: ReadEntry, Entry> ReadEntryResult<M, Entry>
[src]

Convert self into Result<Option<Entry>> as follows:

  • Entry(entry) -> Ok(Some(entry))
  • End(_) -> Ok(None)
  • Error(_, err) -> Err(err)

Attempt to unwrap Entry, panicking if this is End or Error.

Attempt to unwrap Entry, panicking if this is End or Error with the given message. Adds the error's message in the Error case.

Attempt to unwrap Entry, panicking if this is End or Error. If this is End, panics with end_msg; if Error, panics with err_msg as well as the error's message.

Attempt to unwrap as Option<Entry>, panicking in the Error case.

Attempt to unwrap as Option<Entry>, panicking in the Error case with the given message as well as the error's message.

Auto Trait Implementations

impl<M, Entry> Send for ReadEntryResult<M, Entry> where
    Entry: Send,
    M: Send

impl<M, Entry> Sync for ReadEntryResult<M, Entry> where
    Entry: Sync,
    M: Sync

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> Typeable for T where
    T: Any

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any