pub struct EventConfig {
pub event_group_id: EventGroupId,
pub buffer_size: usize,
}Expand description
Configuration for event subscriptions
Fields§
§event_group_id: EventGroupId§buffer_size: usizeMax number of buffered events before dropping
Implementations§
Source§impl EventConfig
impl EventConfig
Sourcepub fn new(event_group_id: EventGroupId) -> Self
pub fn new(event_group_id: EventGroupId) -> Self
Create a new EventConfig with sensible defaults (buffer size = 64).
Trait Implementations§
Source§impl Clone for EventConfig
impl Clone for EventConfig
Source§fn clone(&self) -> EventConfig
fn clone(&self) -> EventConfig
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 EventConfig
impl RefUnwindSafe for EventConfig
impl Send for EventConfig
impl Sync for EventConfig
impl Unpin for EventConfig
impl UnsafeUnpin for EventConfig
impl UnwindSafe for EventConfig
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