[−][src]Enum eventstore::prelude::ReadResult
Variants
StreamNotFound(String)
Implementations
impl<A> ReadResult<A>
[src]
pub fn map<B, F>(self, f: F) -> ReadResult<B> where
F: FnOnce(A) -> B,
[src]
F: FnOnce(A) -> B,
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]
pub fn clone(&self) -> ReadResult<A>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn eq(&self, other: &ReadResult<A>) -> bool
[src]
pub fn ne(&self, other: &ReadResult<A>) -> bool
[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,
A: RefUnwindSafe,
impl<A> Send for ReadResult<A> where
A: Send,
A: Send,
impl<A> Sync for ReadResult<A> where
A: Sync,
A: Sync,
impl<A> Unpin for ReadResult<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for ReadResult<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,