pub struct ObservableListDistributor<T, Codec = Default> { /* private fields */ }👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
Expand description
An observable list distributor allows subscribing to an observable list.
This is clonable and can be sent to other tasks.
Implementations§
Source§impl<T, Codec> ObservableListDistributor<T, Codec>
impl<T, Codec> ObservableListDistributor<T, Codec>
Sourcepub fn subscribe(&self) -> ListSubscription<T, Codec>
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn subscribe(&self) -> ListSubscription<T, Codec>
Subscribes to the observable list with incremental sending of the current contents.
Sourcepub fn subscriber_count(&self) -> usize
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn subscriber_count(&self) -> usize
Current number of subscribers.
Sourcepub fn closed(&self) -> impl Future<Output = ()>
👎Deprecated: remoc-obs has been integrated into remoc as module remoc::robs. Please update your references.
pub fn closed(&self) -> impl Future<Output = ()>
Returns when all subscribers have quit.
If no subscribers are currently present, this return immediately. This also returns when done has been called and all subscribers have received all elements of the list.
Trait Implementations§
Source§impl<T: Clone, Codec: Clone> Clone for ObservableListDistributor<T, Codec>
impl<T: Clone, Codec: Clone> Clone for ObservableListDistributor<T, Codec>
Source§fn clone(&self) -> ObservableListDistributor<T, Codec>
fn clone(&self) -> ObservableListDistributor<T, Codec>
Returns a duplicate of the value. Read more
1.0.0 · 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<T, Codec> Freeze for ObservableListDistributor<T, Codec>
impl<T, Codec> RefUnwindSafe for ObservableListDistributor<T, Codec>
impl<T, Codec> Send for ObservableListDistributor<T, Codec>
impl<T, Codec> Sync for ObservableListDistributor<T, Codec>
impl<T, Codec> Unpin for ObservableListDistributor<T, Codec>
impl<T, Codec> UnwindSafe for ObservableListDistributor<T, Codec>
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