pub struct TracingConfigRegistryClient {
pub set_filter_method_id: u32,
/* private fields */
}Expand description
Registry-aware client stub for the #trait_name service.
This client resolves method IDs from a [ServiceRegistry] at construction time.
This can be useful when you want to validate the service/methods are registered
(or when building tooling around introspection).
It has the same RpcSession requirements as [#client_name].
Fields§
§set_filter_method_id: u32Implementations§
Source§impl TracingConfigRegistryClient
impl TracingConfigRegistryClient
Sourcepub fn new(session: Arc<RpcSession>, registry: &ServiceRegistry) -> Self
pub fn new(session: Arc<RpcSession>, registry: &ServiceRegistry) -> Self
Create a new registry-aware client.
Looks up method IDs from the registry. The service must be registered in the registry before calling this constructor.
The session’s demux loop (session.run()) must be running for RPC calls to work.
§Panics
Panics if the service or any of its methods are not found in the registry.
Sourcepub fn session(&self) -> &Arc<RpcSession>
pub fn session(&self) -> &Arc<RpcSession>
Get a reference to the underlying session.
Auto Trait Implementations§
impl Freeze for TracingConfigRegistryClient
impl !RefUnwindSafe for TracingConfigRegistryClient
impl Send for TracingConfigRegistryClient
impl Sync for TracingConfigRegistryClient
impl Unpin for TracingConfigRegistryClient
impl !UnwindSafe for TracingConfigRegistryClient
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