pub struct EventBusConfig {
pub capacity: usize,
}Expand description
Configuration for a typed EventBus.
Fields§
§capacity: usizeMaximum number of events retained for slow subscribers.
The bus is bounded. When a subscriber falls behind this capacity,
recv() returns an error that reports how many events were skipped.
Trait Implementations§
Source§impl Clone for EventBusConfig
impl Clone for EventBusConfig
Source§fn clone(&self) -> EventBusConfig
fn clone(&self) -> EventBusConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EventBusConfig
Source§impl Debug for EventBusConfig
impl Debug for EventBusConfig
Source§impl Default for EventBusConfig
impl Default for EventBusConfig
impl Eq for EventBusConfig
Source§impl PartialEq for EventBusConfig
impl PartialEq for EventBusConfig
Source§fn eq(&self, other: &EventBusConfig) -> bool
fn eq(&self, other: &EventBusConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EventBusConfig
Auto Trait Implementations§
impl Freeze for EventBusConfig
impl RefUnwindSafe for EventBusConfig
impl Send for EventBusConfig
impl Sync for EventBusConfig
impl Unpin for EventBusConfig
impl UnsafeUnpin for EventBusConfig
impl UnwindSafe for EventBusConfig
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