pub enum HandlerOutput {
Unary(Value),
Stream(Pin<Box<dyn Stream<Item = Value> + Send>>),
}Expand description
A handler runs on the responder when an RPC method is invoked. It may return a single value (unary) or a stream of values (server-streaming).
Variants§
Auto Trait Implementations§
impl Freeze for HandlerOutput
impl !RefUnwindSafe for HandlerOutput
impl Send for HandlerOutput
impl !Sync for HandlerOutput
impl Unpin for HandlerOutput
impl UnsafeUnpin for HandlerOutput
impl !UnwindSafe for HandlerOutput
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