Enum jsonrpc_core::RemoteProcedure
source · pub enum RemoteProcedure<T: Metadata> {
Method(Arc<dyn RpcMethod<T>>),
Notification(Arc<dyn RpcNotification<T>>),
Alias(String),
}
Expand description
Possible Remote Procedures with Metadata
Variants§
Method(Arc<dyn RpcMethod<T>>)
A method call
Notification(Arc<dyn RpcNotification<T>>)
A notification
Alias(String)
An alias to other method,
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for RemoteProcedure<T>
impl<T> Send for RemoteProcedure<T>
impl<T> Sync for RemoteProcedure<T>
impl<T> Unpin for RemoteProcedure<T>
impl<T> !UnwindSafe for RemoteProcedure<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