pub struct RpcPlugin { /* private fields */ }Implementations§
Source§impl RpcPlugin
Inherent implementation of RpcPlugin.
impl RpcPlugin
Inherent implementation of RpcPlugin.
Sourcepub fn get() -> Option<&'static Self>
pub fn get() -> Option<&'static Self>
Returns the initialized global RpcPlugin, if RpcPlugin::init was called.
§Returns
Option<&'static Self>- Reference to the global plugin, orNone.
Sourcepub fn get_config(&self) -> &RpcConfig
pub fn get_config(&self) -> &RpcConfig
Sourcepub fn get_router(&self) -> &RpcRouter
pub fn get_router(&self) -> &RpcRouter
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RpcPlugin
impl !UnwindSafe for RpcPlugin
impl Forget for RpcPlugin
impl Freeze for RpcPlugin
impl Move for RpcPlugin
impl Send for RpcPlugin
impl Sync for RpcPlugin
impl Unpin for RpcPlugin
impl UnsafeUnpin for RpcPluginwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<fn() -> FxHasher>: UnsafeUnpin,
PhantomData<(String, Arc<dyn Fn(Option<Value>) -> Pin<Box<dyn Future<Output = Result<Value, RpcError>> + Send>> + Sync + Send>)>: UnsafeUnpin,
PhantomData<Arc<dyn RpcInterceptor>>: UnsafeUnpin,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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