Trait Service

Source
pub trait Service<In> {
    type Out;

    // Required method
    fn handle(
        self,
        input: impl Stream<Item = In> + Send,
    ) -> impl Stream<Item = Self::Out> + Send;
}

Required Associated Types§

Required Methods§

Source

fn handle( self, input: impl Stream<Item = In> + Send, ) -> impl Stream<Item = Self::Out> + 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.

Implementations on Foreign Types§

Source§

impl<I, S: Service<I, Out = I>> Service<I> for Option<S>

Source§

type Out = I

Source§

fn handle( self, input: impl Stream<Item = I> + Send, ) -> impl Stream<Item = Self::Out> + Send

Implementors§