pub struct InterpreterRequests<M> { /* private fields */ }Expand description
Requests interpreted by the runtime local to the emitting actor.
The request itself is interpreted by the runtime local to the emitting
actor. A request may carry a separate typed logical or exact destination;
its InterpreterRequest::LogicalProtocols reports any possible logical
destination. This lane keeps ordinary deliveries and interpreter operations
statically distinct.
Implementations§
Source§impl<M> InterpreterRequests<M>
impl<M> InterpreterRequests<M>
pub fn new(requests: Vec<M>) -> Self
pub fn one(request: M) -> Self
pub fn as_slice(&self) -> &[M]
pub fn iter(&self) -> Iter<'_, M>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn extend(&mut self, requests: impl IntoIterator<Item = M>)
pub fn into_requests(self) -> Vec<M>
Trait Implementations§
Source§impl<M: Clone> Clone for InterpreterRequests<M>
impl<M: Clone> Clone for InterpreterRequests<M>
Source§fn clone(&self) -> InterpreterRequests<M>
fn clone(&self) -> InterpreterRequests<M>
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<M: Debug> Debug for InterpreterRequests<M>
impl<M: Debug> Debug for InterpreterRequests<M>
Source§impl<M> Index<usize> for InterpreterRequests<M>
impl<M> Index<usize> for InterpreterRequests<M>
Source§impl<Interpreter, RootEvent, Path, Request> InterpretSends<Interpreter, RootEvent, Path> for InterpreterRequests<Request>where
Interpreter: InterpretItem<Request, RootEvent, Path>,
Request: ActionItem,
Request::Custody: Send,
impl<Interpreter, RootEvent, Path, Request> InterpretSends<Interpreter, RootEvent, Path> for InterpreterRequests<Request>where
Interpreter: InterpretItem<Request, RootEvent, Path>,
Request: ActionItem,
Request::Custody: Send,
fn interpret( progress: &mut Option<InterpretationProgress<Self, Self::InterpretationCustody, Self::Settlements>>, interpreter: &mut Interpreter, ) -> impl Future<Output = ()> + Send
Source§impl<'a, M> IntoIterator for &'a InterpreterRequests<M>
impl<'a, M> IntoIterator for &'a InterpreterRequests<M>
Source§impl<M> IntoIterator for InterpreterRequests<M>
impl<M> IntoIterator for InterpreterRequests<M>
Source§impl<M: InterpreterRequest> LogicalDeliveryProtocols for InterpreterRequests<M>
impl<M: InterpreterRequest> LogicalDeliveryProtocols for InterpreterRequests<M>
Source§type Protocols = <M as InterpreterRequest>::LogicalProtocols
type Protocols = <M as InterpreterRequest>::LogicalProtocols
Ordered, duplicate-preserving logical protocol occurrences.
Source§impl<M: PartialEq> PartialEq for InterpreterRequests<M>
impl<M: PartialEq> PartialEq for InterpreterRequests<M>
Source§impl<M> SendEffects for InterpreterRequests<M>
impl<M> SendEffects for InterpreterRequests<M>
Source§impl<Request> SendSettlements for InterpreterRequests<Request>where
Request: ActionItem,
impl<Request> SendSettlements for InterpreterRequests<Request>where
Request: ActionItem,
type Settlements = Vec<SettledItem<Request, ItemSettlement<Request, <Request as ActionItem>::Accepted, <Request as ActionItem>::Rejection, <Request as ActionItem>::Prerequisite>>>
type SourceCustody = (<InterpreterRequests<Request> as SendSettlements>::Settlements, IntoIter<SettledItem<Request, ItemSettlement<Request, <Request as ActionItem>::Accepted, <Request as ActionItem>::Rejection, <Request as ActionItem>::Prerequisite>>>)
type InterpretationCustody = Vec<Option<InterpretationProgress<Request, <Request as ActionItem>::Custody, ItemSettlement<Request, <Request as ActionItem>::Accepted, <Request as ActionItem>::Rejection, <Request as ActionItem>::Prerequisite>>>>
fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::InterpretationCustody, Self::Settlements>>, )
fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::InterpretationCustody, Self::Settlements>>, )
fn unattempted( progress: &mut Option<InterpretationProgress<Self, Self::InterpretationCustody, Self::Settlements>>, )
impl<M: Eq> Eq for InterpreterRequests<M>
impl<Event, M> SendsFor<Event> for InterpreterRequests<M>where
M: InterpreterRequest,
M::ReturnToEmitter: ReturnToEmitterFor<Event>,
impl<M> StructuralPartialEq for InterpreterRequests<M>
Auto Trait Implementations§
impl<M> Freeze for InterpreterRequests<M>
impl<M> RefUnwindSafe for InterpreterRequests<M>where
M: RefUnwindSafe,
impl<M> Send for InterpreterRequests<M>where
M: Send,
impl<M> Sync for InterpreterRequests<M>where
M: Sync,
impl<M> Unpin for InterpreterRequests<M>where
M: Unpin,
impl<M> UnsafeUnpin for InterpreterRequests<M>
impl<M> UnwindSafe for InterpreterRequests<M>where
M: 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