pub struct PreferencesNotificationStream { /* private fields */ }Available on crate feature
async only.Expand description
Wraps async SCPreferences notifications.
Implementations§
Source§impl PreferencesNotificationStream
impl PreferencesNotificationStream
Sourcepub fn subscribe(name: &str, capacity: usize) -> Result<Self>
pub fn subscribe(name: &str, capacity: usize) -> Result<Self>
Wraps SCPreferencesNotificationSubscribe.
Sourcepub const fn next(&self) -> NextItem<'_, PreferencesNotificationEvent>
pub const fn next(&self) -> NextItem<'_, PreferencesNotificationEvent>
Wraps the next buffered SCPreferences notification.
Sourcepub fn try_next(&self) -> Option<PreferencesNotificationEvent>
pub fn try_next(&self) -> Option<PreferencesNotificationEvent>
Wraps a helper on SCPreferences.
Sourcepub fn buffered_count(&self) -> usize
pub fn buffered_count(&self) -> usize
Wraps a helper on SCPreferences.
Auto Trait Implementations§
impl Freeze for PreferencesNotificationStream
impl RefUnwindSafe for PreferencesNotificationStream
impl Send for PreferencesNotificationStream
impl Sync for PreferencesNotificationStream
impl Unpin for PreferencesNotificationStream
impl UnsafeUnpin for PreferencesNotificationStream
impl UnwindSafe for PreferencesNotificationStream
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