pub enum DispatchResult {
Unary(Vec<u8>),
Stream(Box<dyn ErasedStream + Send>),
Error(String),
}Expand description
Result from dispatching a method call. Can be either a unary response or a stream of items.
Variants§
Unary(Vec<u8>)
Unary response - single serialized payload
Stream(Box<dyn ErasedStream + Send>)
Streaming response - boxed stream that yields serialized items
Error(String)
Error during dispatch
Auto Trait Implementations§
impl Freeze for DispatchResult
impl !RefUnwindSafe for DispatchResult
impl Send for DispatchResult
impl !Sync for DispatchResult
impl Unpin for DispatchResult
impl !UnwindSafe for DispatchResult
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