Enum httpbis::futures_misc::ResultOrEof [−][src]
pub enum ResultOrEof<T, E> { Item(T), Error(E), Eof, }
Variants
Item(T)
Error(E)
Eof
Methods
impl<T, E> ResultOrEof<T, E>
[src]
impl<T, E> ResultOrEof<T, E>
pub fn and_then<U, F: FnOnce(T) -> Result<U, E>>(
self,
op: F
) -> ResultOrEof<U, E>
[src]
pub fn and_then<U, F: FnOnce(T) -> Result<U, E>>(
self,
op: F
) -> ResultOrEof<U, E>
Trait Implementations
impl<T, E> From<Result<T, E>> for ResultOrEof<T, E>
[src]
impl<T, E> From<Result<T, E>> for ResultOrEof<T, E>
Auto Trait Implementations
impl<T, E> Send for ResultOrEof<T, E> where
E: Send,
T: Send,
impl<T, E> Send for ResultOrEof<T, E> where
E: Send,
T: Send,
impl<T, E> Sync for ResultOrEof<T, E> where
E: Sync,
T: Sync,
impl<T, E> Sync for ResultOrEof<T, E> where
E: Sync,
T: Sync,