pub struct Packages { /* private fields */ }Expand description
The packages a notifier serves, by Event name.
A framework rather than a switch statement: a package is a name here, and everything the framework does — establishing, refreshing, expiring, terminating, refusing — is the same whichever one it is.
Implementations§
Source§impl Packages
impl Packages
Sourcepub fn serves(&self, event: &str) -> bool
pub fn serves(&self, event: &str) -> bool
Whether a package name is one this side serves.
Case-insensitively, and the template is what is matched: RFC 6665 §8.2.1 makes an Event
value package optionally followed by .template, and a notifier that serves dialog
serves dialog.winfo requests to the extent of recognising them.
Sourcepub fn allow_events(&self) -> String
pub fn allow_events(&self) -> String
The Allow-Events value advertising them (RFC 6665 §4.4.5).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packages
impl RefUnwindSafe for Packages
impl Send for Packages
impl Sync for Packages
impl Unpin for Packages
impl UnsafeUnpin for Packages
impl UnwindSafe for Packages
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