Enum odbc_safe::ReturnOption [] [src]

#[must_use]
pub enum ReturnOption<T, E = ()> { Success(T), Info(T), NoData(E), Error(E), }

Holds result and indicates the overall success or failure of a function.

Variants

The function has been executed successfully. Holds result.

The function has been executed successfully. There have been warnings. Holds result.

No more data was available

An error occured.

Methods

impl<T, E> ReturnOption<T, E>
[src]

[src]

Maps a ReturnOption<T,E> to ReturnOption<U,E> by applying a function to a contained Success or Info value, leaving an Error or NoData value untouched.

Trait Implementations

impl<T: Debug, E: Debug> Debug for ReturnOption<T, E>
[src]

[src]

Formats the value using the given formatter. Read more

impl From<SQLRETURN> for ReturnOption<()>
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<T, E> Send for ReturnOption<T, E> where
    E: Send,
    T: Send

impl<T, E> Sync for ReturnOption<T, E> where
    E: Sync,
    T: Sync