Struct Recording
pub struct Recording { /* private fields */ }Expand description
A notifier that records what it was asked, for tests and for hosts that observe an app without letting it reach the desktop.
Implementations§
Trait Implementations§
§impl Notifier for Recording
impl Notifier for Recording
§fn show(&self, notification: &Notification) -> Result<(), NotifyError>
fn show(&self, notification: &Notification) -> Result<(), NotifyError>
Show
notification, replacing any earlier one with the same tag. Read more§fn withdraw(&self, tag: &str) -> Result<(), NotifyError>
fn withdraw(&self, tag: &str) -> Result<(), NotifyError>
Withdraw the notification shown under
tag, if any. Read more§fn schedule(
&self,
notification: &Notification,
at: SystemTime,
) -> Result<(), NotifyError>
fn schedule( &self, notification: &Notification, at: SystemTime, ) -> Result<(), NotifyError>
Have the platform show
notification at at, even if this app is no
longer running. Scheduling a tag again replaces the earlier one. Read more§fn scheduled(&self) -> Result<Vec<Scheduled>, NotifyError>
fn scheduled(&self) -> Result<Vec<Scheduled>, NotifyError>
The notifications this app has scheduled that are not yet delivered. Read more
§fn cancel_scheduled(&self, tag: &str) -> Result<(), NotifyError>
fn cancel_scheduled(&self, tag: &str) -> Result<(), NotifyError>
Cancel the scheduled notification under
tag, if any. Read more§fn schedule_alarm(
&self,
notification: &Notification,
at: SystemTime,
schedule: AlarmSchedule,
) -> Result<(), NotifyError>
fn schedule_alarm( &self, notification: &Notification, at: SystemTime, schedule: AlarmSchedule, ) -> Result<(), NotifyError>
Schedule a local-time alarm. Hosts that understand calendar alarms
retain recurrence and timezone semantics after the app closes; other
hosts retain the supplied next occurrence through
schedule. Read more§fn alarm_states(&self) -> Result<Vec<AlarmState>, NotifyError>
fn alarm_states(&self) -> Result<Vec<AlarmState>, NotifyError>
Calendar handoffs and delivered occurrences owned by this app.
Hosts that retain only an absolute deadline return no calendar state. Read more
Auto Trait Implementations§
impl !Freeze for Recording
impl RefUnwindSafe for Recording
impl Send for Recording
impl Sync for Recording
impl Unpin for Recording
impl UnsafeUnpin for Recording
impl UnwindSafe for Recording
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.