Struct jsonrpsee_core::server::SubscriptionState
source · pub struct SubscriptionState<'a> {
pub conn_id: ConnectionId,
pub id_provider: &'a dyn IdProvider,
pub subscription_permit: SubscriptionPermit,
}
Available on crate feature
server
only.Expand description
Helper struct to manage subscriptions.
Fields§
§conn_id: ConnectionId
Connection ID
id_provider: &'a dyn IdProvider
ID provider.
subscription_permit: SubscriptionPermit
Subscription limit
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SubscriptionState<'a>
impl<'a> !RefUnwindSafe for SubscriptionState<'a>
impl<'a> Send for SubscriptionState<'a>
impl<'a> Sync for SubscriptionState<'a>
impl<'a> Unpin for SubscriptionState<'a>
impl<'a> !UnwindSafe for SubscriptionState<'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