pub struct StreamConfig {
pub host: String,
pub collections: Vec<String>,
pub zstd_dict: Option<String>,
pub channel_capacity: usize,
pub max_lag_events: usize,
}Expand description
Configuration for the Jetstream consumer.
This mirrors the fields from atrg-core’s JetstreamConfig but lives
in this crate so that atrg-stream has zero dependency on atrg-core.
Fields§
§host: StringJetstream relay host, e.g. "jetstream1.us-east.bsky.network".
collections: Vec<String>NSID collections to subscribe to, e.g. ["app.bsky.feed.post"].
zstd_dict: Option<String>Optional path or URL to a ZSTD dictionary for decompression.
channel_capacity: usizeBounded back-pressure channel size (default: 1024).
max_lag_events: usizeEvent lag threshold before shedding/warning (default: 10_000).
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
Source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
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 StreamConfig
impl RefUnwindSafe for StreamConfig
impl Send for StreamConfig
impl Sync for StreamConfig
impl Unpin for StreamConfig
impl UnsafeUnpin for StreamConfig
impl UnwindSafe for StreamConfig
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