pub struct NotifierService(pub Arc<dyn Transport>);Expand description
Newtype so transport trait objects can be stored in the container.
Tuple Fields§
§0: Arc<dyn Transport>Implementations§
Source§impl NotifierService
impl NotifierService
Sourcepub fn send(&self, notification: &Notification) -> Result<(), NotifierError>
pub fn send(&self, notification: &Notification) -> Result<(), NotifierError>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for NotifierService
impl !UnwindSafe for NotifierService
impl Forget for NotifierService
impl Freeze for NotifierService
impl Move for NotifierService
impl Send for NotifierService
impl Sync for NotifierService
impl Unpin for NotifierService
impl UnsafeUnpin for NotifierService
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