pub struct HttpSseServerEndpoint<SendMsg> { /* private fields */ }Implementations§
Source§impl<SendMsg> HttpSseServerEndpoint<SendMsg>
impl<SendMsg> HttpSseServerEndpoint<SendMsg>
pub fn new( ingress_rx: UnboundedReceiver<RuntimeInput>, sse_tx: Sender<Bytes>, ) -> Self
pub fn with_fanout( ingress_rx: UnboundedReceiver<RuntimeInput>, sse_tx: Sender<Bytes>, fanout: Sender<Bytes>, ) -> Self
Trait Implementations§
Source§impl<SendMsg> Endpoint<RuntimeInput, SendMsg> for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> Endpoint<RuntimeInput, SendMsg> for HttpSseServerEndpoint<SendMsg>
fn recv<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BoxStream<RuntimeInput>, TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn send<'life0, 'async_trait>(
&'life0 self,
item: SendMsg,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn close<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<SendMsg> !Freeze for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> !RefUnwindSafe for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> Send for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> Sync for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> Unpin for HttpSseServerEndpoint<SendMsg>
impl<SendMsg> !UnwindSafe for HttpSseServerEndpoint<SendMsg>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more