pub struct UiNotificationChannel { /* private fields */ }Implementations§
Source§impl UiNotificationChannel
impl UiNotificationChannel
pub fn new(capacity: usize) -> Self
pub fn publish(&self, notification: UiNotification) -> usize
pub fn subscribe(&self) -> Receiver<UiNotification>
pub fn receiver_count(&self) -> usize
Trait Implementations§
Source§impl Clone for UiNotificationChannel
impl Clone for UiNotificationChannel
Source§fn clone(&self) -> UiNotificationChannel
fn clone(&self) -> UiNotificationChannel
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 Freeze for UiNotificationChannel
impl RefUnwindSafe for UiNotificationChannel
impl Send for UiNotificationChannel
impl Sync for UiNotificationChannel
impl Unpin for UiNotificationChannel
impl UnsafeUnpin for UiNotificationChannel
impl UnwindSafe for UiNotificationChannel
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