pub struct ServiceNotifier { /* private fields */ }Expand description
An app’s end of its notification connection: a Rust app’s Notifier, the same service a
tilolang instance reaches.
Implementations§
Trait Implementations§
Source§impl Notifier for ServiceNotifier
impl Notifier for ServiceNotifier
fn show(&self, notification: &Notification) -> Result<(), NotifyError>
fn withdraw(&self, tag: &str) -> Result<(), NotifyError>
fn schedule( &self, notification: &Notification, at: SystemTime, ) -> Result<(), NotifyError>
fn schedule_alarm( &self, notification: &Notification, at: SystemTime, schedule: AlarmSchedule, ) -> Result<(), NotifyError>
fn scheduled(&self) -> Result<Vec<Scheduled>, NotifyError>
Source§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; a host that keeps
only an absolute deadline returns none.
fn cancel_scheduled(&self, tag: &str) -> Result<(), NotifyError>
Auto Trait Implementations§
impl Forget for ServiceNotifier
impl Freeze for ServiceNotifier
impl Move for ServiceNotifier
impl RefUnwindSafe for ServiceNotifierwhere
Atomic<usize>: RefUnwindSafe,
Mutex<UnixStream>: RefUnwindSafe,
Mutex<HashMap<u64, Sender<Answer>>>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
impl Send for ServiceNotifier
impl Sync for ServiceNotifier
impl Unpin for ServiceNotifier
impl UnsafeUnpin for ServiceNotifierwhere
*const ArcInner<Connection> is !null: UnsafeUnpin,
PhantomData<ArcInner<Connection>>: UnsafeUnpin,
impl UnwindSafe for ServiceNotifierwhere
Arc<Connection>: UnwindSafe,
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