pub struct LoggingNotificationSink {
pub events: Vec<NotificationEvent>,
}Expand description
A fully generic, dependency-free NotificationSink: appends every event to an in-memory
log. Useful for tests, or as a base to wrap with a real transport.
Fields§
§events: Vec<NotificationEvent>Implementations§
Trait Implementations§
Source§impl Clone for LoggingNotificationSink
impl Clone for LoggingNotificationSink
Source§fn clone(&self) -> LoggingNotificationSink
fn clone(&self) -> LoggingNotificationSink
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 moreSource§impl Debug for LoggingNotificationSink
impl Debug for LoggingNotificationSink
Source§impl Default for LoggingNotificationSink
impl Default for LoggingNotificationSink
Source§fn default() -> LoggingNotificationSink
fn default() -> LoggingNotificationSink
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoggingNotificationSink
impl RefUnwindSafe for LoggingNotificationSink
impl Send for LoggingNotificationSink
impl Sync for LoggingNotificationSink
impl Unpin for LoggingNotificationSink
impl UnsafeUnpin for LoggingNotificationSink
impl UnwindSafe for LoggingNotificationSink
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