pub struct Sum4 {
pub sum: u64,
/* private fields */
}Fields§
§sum: u64Trait Implementations§
Source§impl From<Sum4> for GlobalProcess
impl From<Sum4> for GlobalProcess
Source§impl Process<SessionB, ()> for Sum4
impl Process<SessionB, ()> for Sum4
fn new(inner: Inner<SessionB>) -> Self
fn extract_result( session_results: &mut VecMap<GlobalPresult>, ) -> Result<(), String>
fn inner_ref(&self) -> &Inner<SessionB>
fn inner_mut(&mut self) -> &mut Inner<SessionB>
fn result_ref(&self) -> &()
fn result_mut(&mut self) -> &mut ()
fn global_result(&mut self) -> GlobalPresult
fn handle_message(&mut self, message: GlobalMessage) -> ControlFlow
fn update(&mut self) -> ControlFlow
Source§fn initialize(&mut self)
fn initialize(&mut self)
Does nothing by default, may be overridden.
fn id(&self) -> &CTX::PIDwhere
CTX: 'static,
fn kind(&self) -> &Kindwhere
CTX: 'static,
fn state_id(&self) -> StateId
fn def(&self) -> &Def<CTX>
fn sourcepoints(&self) -> &VecMap<Box<dyn Sourcepoint<CTX>>>
fn sourcepoints_mut(&mut self) -> &mut VecMap<Box<dyn Sourcepoint<CTX>>>
Source§fn endpoints(&self) -> Ref<'_, Option<VecMap<Box<dyn Endpoint<CTX>>>>>
fn endpoints(&self) -> Ref<'_, Option<VecMap<Box<dyn Endpoint<CTX>>>>>
This method returns a
Ref <Option <...>> because during the run loop
the endpoints will be unavailable as they are being iterated over.
Endpoints are automatically waited on or polled in the appropriate
run_* function. Endpoints will be present for the calls to terminate
or initialize, either before or after the run loop, respectively.Source§fn endpoints_mut(
&mut self,
) -> RefMut<'_, Option<VecMap<Box<dyn Endpoint<CTX>>>>>
fn endpoints_mut( &mut self, ) -> RefMut<'_, Option<VecMap<Box<dyn Endpoint<CTX>>>>>
This method returns a
Ref <Option <...>> because during the run loop
the endpoints will be unavailable as they are being iterated over.
Endpoints are automatically waited on or polled in the appropriate
run_* function. Endpoints will be present for the calls to terminate
or initialize, either before or after the run loop, respectively.Source§fn take_endpoints(&self) -> VecMap<Box<dyn Endpoint<CTX>>>
fn take_endpoints(&self) -> VecMap<Box<dyn Endpoint<CTX>>>
This method is used within the process
run_* methods to get the
endpoints without borrowing the process. Endpoints will then be replaced
with None and unavailable within the run loop. Read morefn send<M: Message<CTX>>(
&self,
channel_id: CTX::CID,
message: M,
) -> Result<(), SendError<CTX::GMSG>>where
CTX: 'static,
fn send_to<M: Message<CTX>>(
&self,
channel_id: CTX::CID,
recipient: CTX::PID,
message: M,
) -> Result<(), SendError<CTX::GMSG>>where
CTX: 'static,
Source§fn run(&mut self)where
Self: Sized + 'static,
CTX: 'static,
fn run(&mut self)where
Self: Sized + 'static,
CTX: 'static,
Run a process to completion and send the result on the result channel.
Source§fn run_continue(self) -> Option<()>where
Self: Sized + 'static,
CTX: 'static,
fn run_continue(self) -> Option<()>where
Self: Sized + 'static,
CTX: 'static,
Run a process to completion, send the result to the session, and proceed
with the continuation received from the session.
Source§fn run_asynchronous(&mut self)where
Self: Sized,
CTX: 'static,
fn run_asynchronous(&mut self)where
Self: Sized,
CTX: 'static,
Asynchronous run loop waits for messages on the single endpoint held by
this process and calls the process update method for every $n >= 1$
messages as specified by the process kind.
Source§fn run_isochronous(&mut self)where
Self: Sized,
CTX: 'static,
fn run_isochronous(&mut self)where
Self: Sized,
CTX: 'static,
This function implements a fixed-timestep update loop. Read more
Source§fn run_mesochronous(&mut self)where
Self: Sized,
CTX: 'static,
fn run_mesochronous(&mut self)where
Self: Sized,
CTX: 'static,
This function implements a rate-limited update loop. Read more
Source§fn run_anisochronous(&mut self)where
Self: Sized,
CTX: 'static,
fn run_anisochronous(&mut self)where
Self: Sized,
CTX: 'static,
An un-timed run loop that polls for messages.
Source§impl TryFrom<GlobalProcess> for Sum4
impl TryFrom<GlobalProcess> for Sum4
impl Presult<SessionB, Sum4> for ()
Auto Trait Implementations§
impl !Freeze for Sum4
impl !RefUnwindSafe for Sum4
impl Send for Sum4
impl !Sync for Sum4
impl Unpin for Sum4
impl UnsafeUnpin for Sum4
impl !UnwindSafe for Sum4
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more