[−][src]Struct apis::session::Session
Implementations
impl<CTX> Session<CTX> where
CTX: Context,
[src]
CTX: Context,
pub fn report_sizes() where
CTX: 'static,
[src]
CTX: 'static,
pub fn new(extended_state: ExtendedState<CTX>) -> Self
[src]
pub fn state(&self) -> &State
[src]
pub fn state_id(&self) -> StateId
[src]
pub fn state_data(&self) -> &StateData
[src]
pub fn extended_state(&self) -> &ExtendedState<CTX>
[src]
pub fn extended_state_mut(&mut self) -> &mut ExtendedState<CTX>
[src]
pub fn handle_event(
&mut self,
_event: Event<'_>
) -> Result<(), HandleEventException>
[src]
&mut self,
_event: Event<'_>
) -> Result<(), HandleEventException>
impl<CTX: Context> Session<CTX>
[src]
pub fn def(&self) -> &Def<CTX>
[src]
pub fn name(&self) -> &'static str
[src]
pub fn run(&mut self) -> VecMap<CTX::GPRES>
[src]
Creates a new session and runs to completion.
Transitions from Ready
to Running
, starts processes not already
running (those present in the process_handles
argument), waits for
results and finally transitions to Ended
.
pub fn run_with(
&mut self,
channels: VecMap<Channel<CTX>>,
process_handles: VecMap<Handle<CTX>>,
main_process: Option<Box<CTX::GPROC>>
) -> VecMap<CTX::GPRES>
[src]
&mut self,
channels: VecMap<Channel<CTX>>,
process_handles: VecMap<Handle<CTX>>,
main_process: Option<Box<CTX::GPROC>>
) -> VecMap<CTX::GPRES>
Run a session with given channels and handles to processes that are running in a continuation from a previous session.
Trait Implementations
impl<CTX> AsMut<ExtendedState<CTX>> for Session<CTX> where
CTX: Context,
[src]
CTX: Context,
fn as_mut(&mut self) -> &mut ExtendedState<CTX>
[src]
impl<CTX> AsRef<ExtendedState<CTX>> for Session<CTX> where
CTX: Context,
[src]
CTX: Context,
fn as_ref(&self) -> &ExtendedState<CTX>
[src]
impl<CTX: Context> Debug for Session<CTX>
[src]
impl<CTX> Drop for Session<CTX> where
CTX: Context,
[src]
CTX: Context,
impl<CTX: Context> From<Def<CTX>> for Session<CTX>
[src]
impl<CTX> MachineDotfile for Session<CTX> where
CTX: Context,
[src]
CTX: Context,
fn name() -> &'static str
[src]
fn type_vars() -> Vec<String>
[src]
fn extended_state_names() -> Vec<&'static str>
[src]
fn extended_state_types() -> Vec<&'static str>
[src]
fn extended_state_defaults() -> Vec<&'static str>
[src]
fn self_reference() -> &'static str
[src]
fn states() -> Vec<&'static str>
[src]
fn state_initial() -> &'static str
[src]
fn state_terminal() -> &'static str
[src]
fn state_data_names() -> Vec<Vec<&'static str>>
[src]
fn state_data_types() -> Vec<Vec<&'static str>>
[src]
fn state_data_defaults() -> Vec<Vec<&'static str>>
[src]
fn state_data_pretty_defaults() -> Vec<Vec<String>>
[src]
This version does not evaluate expressions, only pretty prints them
fn events() -> Vec<&'static str>
[src]
fn event_sources() -> Vec<&'static str>
[src]
fn event_targets() -> Vec<&'static str>
[src]
fn event_actions() -> Vec<&'static str>
[src]
fn dotfile() -> String
[src]
fn dotfile_show_defaults() -> String
[src]
fn dotfile_pretty_defaults() -> String
[src]
fn dotfile_hide_actions() -> String
[src]
Auto Trait Implementations
impl<CTX> !RefUnwindSafe for Session<CTX>
impl<CTX> Send for Session<CTX> where
<CTX as Context>::CID: Send,
<CTX as Context>::GPRES: Send,
<CTX as Context>::GPROC: Send,
<CTX as Context>::MID: Send,
<CTX as Context>::PID: Send,
<CTX as Context>::CID: Send,
<CTX as Context>::GPRES: Send,
<CTX as Context>::GPROC: Send,
<CTX as Context>::MID: Send,
<CTX as Context>::PID: Send,
impl<CTX> !Sync for Session<CTX>
impl<CTX> Unpin for Session<CTX> where
<CTX as Context>::CID: Unpin,
<CTX as Context>::MID: Unpin,
<CTX as Context>::PID: Unpin,
<CTX as Context>::CID: Unpin,
<CTX as Context>::MID: Unpin,
<CTX as Context>::PID: Unpin,
impl<CTX> !UnwindSafe for Session<CTX>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,