Enum jsonrpsee_server::MethodResult
source · pub enum MethodResult<T> {
Sync(T),
Async(Pin<Box<dyn Future<Output = T> + Send>>),
}
Expand description
Result of a method, either direct value or a future of one.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for MethodResult<T>where
T: Freeze,
impl<T> !RefUnwindSafe for MethodResult<T>
impl<T> Send for MethodResult<T>where
T: Send,
impl<T> !Sync for MethodResult<T>
impl<T> Unpin for MethodResult<T>where
T: Unpin,
impl<T> !UnwindSafe for MethodResult<T>
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