IntoStreamingRequest

Trait IntoStreamingRequest 

Source
pub trait IntoStreamingRequest {
    type Stream: Stream<Item = Self::Message> + Send + 'static;
    type Message;

    // Required method
    fn into_streaming_request(self) -> Request<Self::Stream>;
}

Required Associated Types§

Source

type Stream: Stream<Item = Self::Message> + Send + 'static

Source

type Message

Required Methods§

Implementors§

Source§

impl<T> IntoStreamingRequest for T
where T: Stream + Send + 'static,

Source§

type Stream = T

Source§

type Message = <T as Stream>::Item