[−][src]Enum lber::ConsumerState
Stores a consumer's current computation state
Variants
A value of type O has been produced
An error of type E has been encountered
Continue applying, and pass a message of type M to the data source
Methods
impl<O, E, M> ConsumerState<O, E, M> where
E: Copy,
M: Copy,
O: Clone,
[src]
E: Copy,
M: Copy,
O: Clone,
pub fn map<P, F>(&self, f: F) -> ConsumerState<P, E, M> where
F: FnOnce(O) -> P,
[src]
F: FnOnce(O) -> P,
pub fn flat_map<P, F>(&self, f: F) -> ConsumerState<P, E, M> where
F: FnOnce(M, O) -> ConsumerState<P, E, M>,
[src]
F: FnOnce(M, O) -> ConsumerState<P, E, M>,
Trait Implementations
impl<O, E, M> Clone for ConsumerState<O, E, M> where
E: Clone,
M: Clone,
O: Clone,
[src]
E: Clone,
M: Clone,
O: Clone,
fn clone(&self) -> ConsumerState<O, E, M>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<O, E, M> Debug for ConsumerState<O, E, M> where
E: Debug,
M: Debug,
O: Debug,
[src]
E: Debug,
M: Debug,
O: Debug,
Auto Trait Implementations
impl<O, E, M> RefUnwindSafe for ConsumerState<O, E, M> where
E: RefUnwindSafe,
M: RefUnwindSafe,
O: RefUnwindSafe,
E: RefUnwindSafe,
M: RefUnwindSafe,
O: RefUnwindSafe,
impl<O, E, M> Send for ConsumerState<O, E, M> where
E: Send,
M: Send,
O: Send,
E: Send,
M: Send,
O: Send,
impl<O, E, M> Sync for ConsumerState<O, E, M> where
E: Sync,
M: Sync,
O: Sync,
E: Sync,
M: Sync,
O: Sync,
impl<O, E, M> Unpin for ConsumerState<O, E, M> where
E: Unpin,
M: Unpin,
O: Unpin,
E: Unpin,
M: Unpin,
O: Unpin,
impl<O, E, M> UnwindSafe for ConsumerState<O, E, M> where
E: UnwindSafe,
M: UnwindSafe,
O: UnwindSafe,
E: UnwindSafe,
M: UnwindSafe,
O: 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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,