pub struct StreamConfig {
pub capacity: usize,
pub publisher_slots: usize,
pub subscriber_slots: usize,
}Expand description
Capacity and participant limits for an event stream.
Fields§
§capacity: usizeNumber of events retained in each lane.
publisher_slots: usizeMaximum number of concurrent publishers that can be created for the stream.
subscriber_slots: usizeMaximum number of concurrent subscribers.
Trait Implementations§
Source§impl Clone for StreamConfig
impl Clone for StreamConfig
impl Copy for StreamConfig
Source§impl Debug for StreamConfig
impl Debug for StreamConfig
impl Eq for StreamConfig
Source§impl PartialEq for StreamConfig
impl PartialEq for StreamConfig
impl StructuralPartialEq for StreamConfig
Auto 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