pub struct SubscriptionState {
pub id: usize,
pub subscription_key: String,
pub status: SubscriptionStatus,
pub last_values: HashMap<String, String>,
pub created_at: Instant,
pub last_update: Option<Instant>,
}
Expand description
State of a subscription
Fields§
§id: usize
Unique identifier for this subscription
subscription_key: String
Key used to identify the subscription in Lightstreamer
status: SubscriptionStatus
Current status of the subscription
last_values: HashMap<String, String>
Last received values for subscribed items
created_at: Instant
Timestamp when this subscription was created
last_update: Option<Instant>
Timestamp of the last update received for this subscription
Trait Implementations§
Source§impl Clone for SubscriptionState
impl Clone for SubscriptionState
Source§fn clone(&self) -> SubscriptionState
fn clone(&self) -> SubscriptionState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SubscriptionState
impl RefUnwindSafe for SubscriptionState
impl Send for SubscriptionState
impl Sync for SubscriptionState
impl Unpin for SubscriptionState
impl UnwindSafe for SubscriptionState
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