pub struct Deadline<B: Behavior> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<B, A, Ph, Sends, Br> Behavior for Deadline<B>
impl<B, A, Ph, Sends, Br> Behavior for Deadline<B>
type Addr = A
type Msg = <B as Behavior>::Msg
type Event = TimedEvent<<B as Behavior>::Event>
type Sends = DeadlineSends<Sends>
type Ph = Ph
type Error = <B as Behavior>::Error
type Birth = Br
Source§fn init(&mut self) -> Result<DeadlineActions<B>, B::Error>
fn init(&mut self) -> Result<DeadlineActions<B>, B::Error>
Produce initialization actions before the first event is accepted.
Source§fn transition(
&mut self,
event: Self::Event,
) -> Result<DeadlineActions<B>, B::Error>
fn transition( &mut self, event: Self::Event, ) -> Result<DeadlineActions<B>, B::Error>
Fold exactly one event into explicit actions and the next behavior.
Source§fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
fn receive(
&mut self,
from: Self::Addr,
message: Self::Msg,
) -> BehaviorActed<Self>where
Self: Sized,
Fold one user communication through the composed protocol.
Source§fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
fn on<Input>(&mut self, input: Input) -> BehaviorActed<Self>
Inject one supported semantic input and fold it through this behavior. Read more
Auto Trait Implementations§
impl<B> Freeze for Deadline<B>where
B: Freeze,
impl<B> RefUnwindSafe for Deadline<B>where
B: RefUnwindSafe,
impl<B> Send for Deadline<B>where
B: Send,
impl<B> Sync for Deadline<B>where
B: Sync,
impl<B> Unpin for Deadline<B>where
B: Unpin,
impl<B> UnsafeUnpin for Deadline<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for Deadline<B>where
B: UnwindSafe,
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