pub enum PatternAction<PeerId> {
Send {
peer: PeerId,
item: OutboundItem,
},
Deliver {
peer: PeerId,
message: Multipart,
},
}Expand description
An action produced by a pattern core.
Variants§
Send
Send an outbound item to a specific peer.
Deliver
Deliver an inbound multipart message to the caller.
Trait Implementations§
Source§impl<PeerId: Clone> Clone for PatternAction<PeerId>
impl<PeerId: Clone> Clone for PatternAction<PeerId>
Source§fn clone(&self) -> PatternAction<PeerId>
fn clone(&self) -> PatternAction<PeerId>
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<PeerId: Debug> Debug for PatternAction<PeerId>
impl<PeerId: Debug> Debug for PatternAction<PeerId>
Source§impl<PeerId: PartialEq> PartialEq for PatternAction<PeerId>
impl<PeerId: PartialEq> PartialEq for PatternAction<PeerId>
impl<PeerId: Eq> Eq for PatternAction<PeerId>
impl<PeerId> StructuralPartialEq for PatternAction<PeerId>
Auto Trait Implementations§
impl<PeerId> !Freeze for PatternAction<PeerId>
impl<PeerId> RefUnwindSafe for PatternAction<PeerId>where
PeerId: RefUnwindSafe,
impl<PeerId> Send for PatternAction<PeerId>where
PeerId: Send,
impl<PeerId> Sync for PatternAction<PeerId>where
PeerId: Sync,
impl<PeerId> Unpin for PatternAction<PeerId>where
PeerId: Unpin,
impl<PeerId> UnsafeUnpin for PatternAction<PeerId>where
PeerId: UnsafeUnpin,
impl<PeerId> UnwindSafe for PatternAction<PeerId>where
PeerId: 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