Enum diny_core::backend::PollDecodeStatus [−][src]
pub enum PollDecodeStatus<Dta, Err> {
Fini(Dta),
Pending,
Error(Err),
}
Variants
The operation has successfully completed decoding the data.
The operation resulted in an error.
Implementations
Maps decoded data to the data structure by applying f
Maps any returned error to the error returned by applying f
pub fn and_then<F, D>(self, f: F) -> PollDecodeStatus<D, Err> where
F: FnOnce(Dta) -> PollDecodeStatus<D, Err>,
pub fn and_then<F, D>(self, f: F) -> PollDecodeStatus<D, Err> where
F: FnOnce(Dta) -> PollDecodeStatus<D, Err>,
Binds the decoded data to the data structure mapped by f
Lifts the PollDecodeStatus to a StartDecodeStatus by consuming
the passed in pend
object if necessary
Trait Implementations
Performs the conversion.