[][src]Enum eventstore::ReadResult

pub enum ReadResult<A> {
    Ok(A),
    StreamNotFound(String),
}

Variants

Ok(A)
StreamNotFound(String)

Implementations

impl<A> ReadResult<A>[src]

pub fn map<B, F>(self, f: F) -> ReadResult<B> where
    F: FnOnce(A) -> B, 
[src]

Maps an ReadResult<A> to ReadResult<B> by applying a function to a contained value.

pub fn ok(self) -> Option<A>[src]

Converts from ReadResult<A> to Option<A>.

Converts self into an Option<A>, consuming self, and discarding the success value, if any.

pub const fn is_ok(&self) -> bool[src]

Returns true if the result is ReadResult::Ok.

pub const fn is_not_found(&self) -> bool[src]

Returns true if the result is ReadResult::StreamNotFound.

pub fn unwrap(self) -> A[src]

Returns the contained Ok value, consuming the self value.

Trait Implementations

impl<A: Clone> Clone for ReadResult<A>[src]

impl<A: Debug> Debug for ReadResult<A>[src]

impl<A: Eq> Eq for ReadResult<A>[src]

impl<A: PartialEq> PartialEq<ReadResult<A>> for ReadResult<A>[src]

impl<A> StructuralEq for ReadResult<A>[src]

impl<A> StructuralPartialEq for ReadResult<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for ReadResult<A> where
    A: RefUnwindSafe

impl<A> Send for ReadResult<A> where
    A: Send

impl<A> Sync for ReadResult<A> where
    A: Sync

impl<A> Unpin for ReadResult<A> where
    A: Unpin

impl<A> UnwindSafe for ReadResult<A> where
    A: UnwindSafe

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]