Trait TryService

Source
pub trait TryService<I, E>: Service<Result<I, E>, Out = Result<Self::Ok, Self::Error>> {
    type Ok;
    type Error;

    // Required method
    fn try_handle(
        self,
        input: impl Stream<Item = Result<I, E>> + Send,
    ) -> impl Stream<Item = Result<Self::Ok, Self::Error>> + Send;
}

Required Associated Types§

Required Methods§

Source

fn try_handle( self, input: impl Stream<Item = Result<I, E>> + Send, ) -> impl Stream<Item = Result<Self::Ok, Self::Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, I, IE, O, OE> TryService<I, IE> for S
where S: Service<Result<I, IE>, Out = Result<O, OE>>,

Source§

type Ok = O

Source§

type Error = OE