pub enum ServiceResponse<Response> {
Single(Response),
Multiple(Pin<Box<dyn Stream<Item = Result<Response, ProtocolError>> + Send>>),
}
Expand description
A response container returned by a multilink service.
Variants§
Single(Response)
Contains a single response returned by the service.
Multiple(Pin<Box<dyn Stream<Item = Result<Response, ProtocolError>> + Send>>)
Contains a stream of multiple responses returned by the service.
Auto Trait Implementations§
impl<Response> Freeze for ServiceResponse<Response>where
Response: Freeze,
impl<Response> !RefUnwindSafe for ServiceResponse<Response>
impl<Response> Send for ServiceResponse<Response>where
Response: Send,
impl<Response> !Sync for ServiceResponse<Response>
impl<Response> Unpin for ServiceResponse<Response>where
Response: Unpin,
impl<Response> !UnwindSafe for ServiceResponse<Response>
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