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