Struct jsonrpsee_core::server::rpc_module::ConnState
source · pub struct ConnState<'a> {
pub conn_id: ConnectionId,
pub close_notify: SubscriptionPermit,
pub id_provider: &'a dyn IdProvider,
}
Available on crate feature
server
only.Expand description
Helper struct to manage subscriptions.
Fields§
§conn_id: ConnectionId
Connection ID
close_notify: SubscriptionPermit
Get notified when the connection to subscribers is closed.
id_provider: &'a dyn IdProvider
ID provider.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ConnState<'a>
impl<'a> Send for ConnState<'a>
impl<'a> Sync for ConnState<'a>
impl<'a> Unpin for ConnState<'a>
impl<'a> !UnwindSafe for ConnState<'a>
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