pub struct SubscriptionConfig {
pub entity_types: Vec<String>,
pub events: Vec<SubscriptionEvent>,
pub from_block: Option<u64>,
pub buffer_size: usize,
}Expand description
Configuration for real-time entity change subscriptions.
Describes which entity types and events a subscriber is interested in. The actual WebSocket transport is not implemented here — this struct is carried as metadata for higher-level subscription routers.
Fields§
§entity_types: Vec<String>Entity types to subscribe to (empty = all types).
events: Vec<SubscriptionEvent>Event kinds to receive.
from_block: Option<u64>Optional filter: only emit events at or above this block number.
buffer_size: usizeMaximum number of buffered events before backpressure is applied.
Trait Implementations§
Source§impl Clone for SubscriptionConfig
impl Clone for SubscriptionConfig
Source§fn clone(&self) -> SubscriptionConfig
fn clone(&self) -> SubscriptionConfig
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 SubscriptionConfig
impl Debug for SubscriptionConfig
Source§impl Default for SubscriptionConfig
impl Default for SubscriptionConfig
Source§impl<'de> Deserialize<'de> for SubscriptionConfig
impl<'de> Deserialize<'de> for SubscriptionConfig
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 SubscriptionConfig
impl RefUnwindSafe for SubscriptionConfig
impl Send for SubscriptionConfig
impl Sync for SubscriptionConfig
impl Unpin for SubscriptionConfig
impl UnsafeUnpin for SubscriptionConfig
impl UnwindSafe for SubscriptionConfig
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