pub struct ConsoleProvider { /* private fields */ }Expand description
Always-available fallback. Per the architecture review: unmatched signals must go SOMEWHERE — a notification SDK that silently drops signals is worse than having no SDK at all. Console is the guaranteed-to-work last resort.
Implementations§
Source§impl ConsoleProvider
impl ConsoleProvider
pub fn new() -> Self
Sourcepub fn with_templates(self, templates: Option<Templates>) -> Self
pub fn with_templates(self, templates: Option<Templates>) -> Self
Uses templates for the parts they set; see crate::template.
Trait Implementations§
Source§impl Default for ConsoleProvider
impl Default for ConsoleProvider
Source§fn default() -> ConsoleProvider
fn default() -> ConsoleProvider
Returns the “default value” for a type. Read more
Source§impl Provider for ConsoleProvider
impl Provider for ConsoleProvider
fn name(&self) -> &'static str
Source§fn preview(&self, signal: &Signal) -> Option<Value>
fn preview(&self, signal: &Signal) -> Option<Value>
What
send would deliver for signal, without sending it, for
checking templates (signal preview). None when the provider
can’t show it.fn send<'life0, 'life1, 'async_trait>(
&'life0 self,
signal: &'life1 Signal,
) -> Pin<Box<dyn Future<Output = Result<(), SignalError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for ConsoleProvider
impl !RefUnwindSafe for ConsoleProvider
impl !UnwindSafe for ConsoleProvider
impl Send for ConsoleProvider
impl Sync for ConsoleProvider
impl Unpin for ConsoleProvider
impl UnsafeUnpin for ConsoleProvider
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