pub struct ListChangedNotifier { /* private fields */ }Implementations§
Source§impl ListChangedNotifier
impl ListChangedNotifier
pub fn new() -> Self
pub async fn register(&self, peer: Arc<dyn PeerNotifier>)
pub async fn broadcast_list_changed(&self)
pub async fn peer_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ListChangedNotifier
impl !RefUnwindSafe for ListChangedNotifier
impl Send for ListChangedNotifier
impl Sync for ListChangedNotifier
impl Unpin for ListChangedNotifier
impl UnsafeUnpin for ListChangedNotifier
impl !UnwindSafe for ListChangedNotifier
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