Enum jsonrpsee_core::server::MethodResult
source · pub enum MethodResult<T> {
Sync(T),
Async(BoxFuture<'static, T>),
}
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