pub struct NotificationService(pub Arc<dyn NotificationSink>);Tuple Fields§
§0: Arc<dyn NotificationSink>Implementations§
Source§impl NotificationService
impl NotificationService
pub fn new(sink: Arc<dyn NotificationSink>) -> Self
pub async fn send( &self, notification: Notification, ) -> Result<(), NotificationError>
Trait Implementations§
Source§impl Clone for NotificationService
impl Clone for NotificationService
Source§fn clone(&self) -> NotificationService
fn clone(&self) -> NotificationService
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for NotificationService
impl !UnwindSafe for NotificationService
impl Freeze for NotificationService
impl Send for NotificationService
impl Sync for NotificationService
impl Unpin for NotificationService
impl UnsafeUnpin for NotificationService
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