Struct remoc_obs::list::ListSubscription
source · [−]pub struct ListSubscription<T, Codec = Default> { /* private fields */ }
Expand description
Observable list subscription.
This can be sent to a remote endpoint via a remote channel. Then, on the remote endpoint, mirror can be used to build and keep up-to-date a mirror of the observed list.
The event stream can also be processed event-wise using recv.
Implementations
sourceimpl<T, Codec> ListSubscription<T, Codec> where
T: RemoteSend + Clone,
Codec: Codec,
impl<T, Codec> ListSubscription<T, Codec> where
T: RemoteSend + Clone,
Codec: Codec,
sourceimpl<T, Codec> ListSubscription<T, Codec> where
T: RemoteSend + Clone + Sync,
Codec: Codec,
impl<T, Codec> ListSubscription<T, Codec> where
T: RemoteSend + Clone + Sync,
Codec: Codec,
sourcepub fn mirror(self, max_size: usize) -> MirroredList<T>
pub fn mirror(self, max_size: usize) -> MirroredList<T>
Mirror the list that this subscription is observing.
max_size
specifies the maximum allowed size of the mirrored collection.
If this size is reached, processing of events is stopped and
RecvError::MaxSizeExceeded is returned.
Trait Implementations
sourceimpl<T: Debug, Codec: Debug> Debug for ListSubscription<T, Codec>
impl<T: Debug, Codec: Debug> Debug for ListSubscription<T, Codec>
sourceimpl<'de, T, Codec> Deserialize<'de> for ListSubscription<T, Codec> where
T: RemoteSend,
Codec: Codec,
impl<'de, T, Codec> Deserialize<'de> for ListSubscription<T, Codec> where
T: RemoteSend,
Codec: Codec,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T, Codec> Serialize for ListSubscription<T, Codec> where
T: RemoteSend,
Codec: Codec,
impl<T, Codec> Serialize for ListSubscription<T, Codec> where
T: RemoteSend,
Codec: Codec,
Auto Trait Implementations
impl<T, Codec = Default> !RefUnwindSafe for ListSubscription<T, Codec>
impl<T, Codec> Send for ListSubscription<T, Codec> where
Codec: Send,
T: Send,
impl<T, Codec> Sync for ListSubscription<T, Codec> where
Codec: Sync,
T: Send,
impl<T, Codec> Unpin for ListSubscription<T, Codec>
impl<T, Codec = Default> !UnwindSafe for ListSubscription<T, Codec>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more