pub enum WebSocketUsageEvent {
ConnectionEstablished {
client_id: String,
remote_addr: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
key_class: Option<String>,
},
ConnectionClosed {
client_id: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
duration_secs: Option<f64>,
subscription_count: u32,
},
SubscriptionCreated {
client_id: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
view_id: String,
},
SubscriptionRemoved {
client_id: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
view_id: String,
},
SnapshotSent {
client_id: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
view_id: String,
rows: u32,
messages: u32,
bytes: u64,
},
UpdateSent {
client_id: String,
deployment_id: Option<String>,
metering_key: Option<String>,
subject: Option<String>,
view_id: String,
messages: u32,
bytes: u64,
},
}Variants§
ConnectionEstablished
Fields
ConnectionClosed
Fields
SubscriptionCreated
Fields
SubscriptionRemoved
Fields
SnapshotSent
Fields
UpdateSent
Trait Implementations§
Source§impl Clone for WebSocketUsageEvent
impl Clone for WebSocketUsageEvent
Source§fn clone(&self) -> WebSocketUsageEvent
fn clone(&self) -> WebSocketUsageEvent
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 moreSource§impl Debug for WebSocketUsageEvent
impl Debug for WebSocketUsageEvent
Source§impl<'de> Deserialize<'de> for WebSocketUsageEvent
impl<'de> Deserialize<'de> for WebSocketUsageEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WebSocketUsageEvent
impl RefUnwindSafe for WebSocketUsageEvent
impl Send for WebSocketUsageEvent
impl Sync for WebSocketUsageEvent
impl Unpin for WebSocketUsageEvent
impl UnsafeUnpin for WebSocketUsageEvent
impl UnwindSafe for WebSocketUsageEvent
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