pub struct Subscription {
pub id: String,
pub event_types: Vec<String>,
pub callback: Box<dyn Fn(RealtimeEvent) + Send + Sync>,
}Expand description
Subscription to real-time events
Fields§
§id: String§event_types: Vec<String>§callback: Box<dyn Fn(RealtimeEvent) + Send + Sync>Auto Trait Implementations§
impl Freeze for Subscription
impl !RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl !UnwindSafe for Subscription
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