pub struct Watching<B: Behavior> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<B, A, Ph, Sends, Br> Behavior for Watching<B>
impl<B, A, Ph, Sends, Br> Behavior for Watching<B>
type Addr = A
type Msg = <B as Behavior>::Msg
type Event = WatchEvent<<B as Behavior>::Event, <B as Behavior>::Addr>
type Sends = SendProduct<Sends, ServiceSends<ObservePeer<A>>>
type Ph = Ph
type Error = <B as Behavior>::Error
type Birth = Br
type Effect = Actions<A, Ph, <Watching<B> as Behavior>::Sends, Br>
type Done = Exit<A>
async fn init(&mut self) -> Result<Self::Effect, B::Error>
async fn step(&mut self, event: Self::Event) -> Result<Self::Effect, B::Error>
Auto Trait Implementations§
impl<B> Freeze for Watching<B>
impl<B> RefUnwindSafe for Watching<B>
impl<B> Send for Watching<B>
impl<B> Sync for Watching<B>
impl<B> Unpin for Watching<B>
impl<B> UnsafeUnpin for Watching<B>
impl<B> UnwindSafe for Watching<B>
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