#[non_exhaustive]pub struct NotifyEventGroup {
pub filter: MailboxFilter,
pub events: Vec<NotifyEvent>,
}Expand description
A group of events to monitor on a set of mailboxes (RFC 5465 Section 8).
RFC 5465 Section 8 ABNF:
event-group = "(" filter-mailboxes SP events ")"
events = ("(" event *(SP event) ")") / "NONE"Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.filter: MailboxFilterWhich mailboxes this event group applies to (RFC 5465 Section 6).
events: Vec<NotifyEvent>Events to monitor. An empty Vec means NONE — no events for this
filter (RFC 5465 Section 8).
Implementations§
Source§impl NotifyEventGroup
impl NotifyEventGroup
Sourcepub fn new(filter: MailboxFilter, events: Vec<NotifyEvent>) -> Self
pub fn new(filter: MailboxFilter, events: Vec<NotifyEvent>) -> Self
Create a new event group for the given mailbox filter and events (RFC 5465 Section 8).
Trait Implementations§
Source§impl Clone for NotifyEventGroup
impl Clone for NotifyEventGroup
Source§fn clone(&self) -> NotifyEventGroup
fn clone(&self) -> NotifyEventGroup
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 NotifyEventGroup
impl Debug for NotifyEventGroup
Source§impl Hash for NotifyEventGroup
impl Hash for NotifyEventGroup
Source§impl PartialEq for NotifyEventGroup
impl PartialEq for NotifyEventGroup
impl Eq for NotifyEventGroup
impl StructuralPartialEq for NotifyEventGroup
Auto Trait Implementations§
impl Freeze for NotifyEventGroup
impl RefUnwindSafe for NotifyEventGroup
impl Send for NotifyEventGroup
impl Sync for NotifyEventGroup
impl Unpin for NotifyEventGroup
impl UnsafeUnpin for NotifyEventGroup
impl UnwindSafe for NotifyEventGroup
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