pub struct Subscriber<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> { /* private fields */ }
Expand description
The public-facing part of a subscriber (to be returned by Store::subscribe_area).
Trait Implementations§
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Debug, S: Debug, PD: Debug, AT: Debug, Err: Debug> Debug for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N: Debug, S: Debug, PD: Debug, AT: Debug, Err: Debug> Debug for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> Drop for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> Drop for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> Producer for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> Producer for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
Source§type Item = StoreEvent<MCL, MCC, MPL, N, S, PD, AT>
type Item = StoreEvent<MCL, MCC, MPL, N, S, PD, AT>
The sequence produced by this producer starts with arbitrarily many values of this type.
Source§type Final = ()
type Final = ()
The sequence produced by this producer ends with up to one value of this type.
Source§async fn produce(
&mut self,
) -> Result<Either<Self::Item, Self::Final>, Self::Error>
async fn produce( &mut self, ) -> Result<Either<Self::Item, Self::Final>, Self::Error>
Attempts to produce the next item, which is either a regular repeated item or the final item. Read more
Source§fn produce_item(
&mut self,
) -> impl Future<Output = Result<Self::Item, ProduceAtLeastError<Self::Final, Self::Error>>>
fn produce_item( &mut self, ) -> impl Future<Output = Result<Self::Item, ProduceAtLeastError<Self::Final, Self::Error>>>
Tries to produce a regular item, and reports an error if the final item was produced instead. Read more
Auto Trait Implementations§
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> !Freeze for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> !RefUnwindSafe for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> !Send for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> !Sync for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> Unpin for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
impl<const MCL: usize, const MCC: usize, const MPL: usize, N, S, PD, AT, Err> !UnwindSafe for Subscriber<MCL, MCC, MPL, N, S, PD, AT, Err>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more