pub struct UnaryRequest<K, O>{
pub id: StateId<K>,
pub op: O,
}Expand description
A message that is expected to return a result
to the associated StateId that that did the initial request
Fields§
§id: StateId<K>§op: OImplementations§
Source§impl<K, O> UnaryRequest<K, O>
impl<K, O> UnaryRequest<K, O>
Source§impl<K> UnaryRequest<K, TimeoutOp<K>>
impl<K> UnaryRequest<K, TimeoutOp<K>>
pub fn set_timeout(id: StateId<K>, duration: Duration) -> Self
pub const fn cancel_timeout(id: StateId<K>) -> Self
pub fn retain(id: StateId<K>, item: RetainItem<K>, duration: Duration) -> Self
Trait Implementations§
Source§impl<K, O> Clone for UnaryRequest<K, O>
impl<K, O> Clone for UnaryRequest<K, O>
Source§fn clone(&self) -> UnaryRequest<K, O>
fn clone(&self) -> UnaryRequest<K, O>
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 moreSource§impl<K, O> Debug for UnaryRequest<K, O>
impl<K, O> Debug for UnaryRequest<K, O>
impl<K: HashKind, O: Operation + Copy> Copy for UnaryRequest<K, O>
Auto Trait Implementations§
impl<K, O> Freeze for UnaryRequest<K, O>
impl<K, O> RefUnwindSafe for UnaryRequest<K, O>where
O: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, O> Send for UnaryRequest<K, O>where
O: Send,
impl<K, O> Sync for UnaryRequest<K, O>where
O: Sync,
impl<K, O> Unpin for UnaryRequest<K, O>
impl<K, O> UnwindSafe for UnaryRequest<K, O>where
O: UnwindSafe,
K: 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