Enum diny::backend::StartDecodeStatus [−][src]
pub enum StartDecodeStatus<Dta, Dec, Err> {
Fini(Dta),
Pending(Dec),
Error(Err),
}
Expand description
Variants
The operation has successfully completed decoding the data.
The operation resulted in an error.
Implementations
pub fn bimap<Fdta, Gdec, F, G>(
self,
f: F,
g: G
) -> StartDecodeStatus<Fdta, Gdec, Err> where
F: FnOnce(Dta) -> Fdta,
G: FnOnce(Dec) -> Gdec,
pub fn bimap<Fdta, Gdec, F, G>(
self,
f: F,
g: G
) -> StartDecodeStatus<Fdta, Gdec, Err> where
F: FnOnce(Dta) -> Fdta,
G: FnOnce(Dec) -> Gdec,
Convenience method for functorially mapping either variant to a new status.
pub fn and_then<Fdta, Gdec, F, G>(
self,
f: F,
g: G
) -> StartDecodeStatus<Fdta, Gdec, Err> where
F: FnOnce(Dta) -> StartDecodeStatus<Fdta, Gdec, Err>,
G: FnOnce(Dec) -> Gdec,
pub fn and_then<Fdta, Gdec, F, G>(
self,
f: F,
g: G
) -> StartDecodeStatus<Fdta, Gdec, Err> where
F: FnOnce(Dta) -> StartDecodeStatus<Fdta, Gdec, Err>,
G: FnOnce(Dec) -> Gdec,
Convenience method for functorially mapping either variant to a new status.
Trait Implementations
Performs the conversion.
Performs the conversion.