pub struct ModbusControlSession { /* private fields */ }Expand description
In-process control session over a compiled simulator session.
Implementations§
Source§impl ModbusControlSession
impl ModbusControlSession
pub async fn new( registry: ProtocolDriverRegistry, compiled: CompiledModbusSession, fallback_readiness_timeout: Duration, ) -> ModbusResult<Self>
pub async fn stop(&self) -> ModbusResult<()>
Trait Implementations§
Source§impl BehaviorSetPort for ModbusControlSession
impl BehaviorSetPort for ModbusControlSession
fn available_behavior_sets(&self) -> Vec<String>
fn active_behavior_set(&self) -> Option<String>
fn apply_behavior_set<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear_behavior_set<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl FaultPresetPort for ModbusControlSession
impl FaultPresetPort for ModbusControlSession
fn available_fault_presets(&self) -> Vec<String>
fn active_fault_preset(&self) -> Option<String>
fn apply_fault_preset<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear_fault_preset<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl PointCatalogPort for ModbusControlSession
impl PointCatalogPort for ModbusControlSession
fn list_points( &self, query: &PointCatalogQuery, ) -> ModbusResult<Vec<PointDescriptor>>
Source§impl RegisterControlPort for ModbusControlSession
impl RegisterControlPort for ModbusControlSession
fn read<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 PointTarget,
) -> Pin<Box<dyn Future<Output = ModbusResult<DataPoint>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write<'life0, 'life1, 'async_trait>(
&'life0 self,
target: &'life1 PointTarget,
value: Value,
) -> Pin<Box<dyn Future<Output = ModbusResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl ResponseProfilePort for ModbusControlSession
impl ResponseProfilePort for ModbusControlSession
fn available_response_profiles(&self) -> Vec<String>
fn active_response_profile(&self) -> Option<String>
fn apply_response_profile<'life0, 'life1, 'async_trait>(
&'life0 mut self,
name: &'life1 str,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn clear_response_profile<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl SessionControlPort for ModbusControlSession
impl SessionControlPort for ModbusControlSession
fn status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionStatus>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reset<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = ModbusResult<SessionSnapshot>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Source§impl SessionMetadataPort for ModbusControlSession
impl SessionMetadataPort for ModbusControlSession
fn action_binding_summaries(&self) -> &[ActionBindingSummary]
fn behavior_binding_summaries(&self) -> &[BehaviorBindingSummary]
fn datastore_policy_summaries(&self) -> &[DatastorePolicySummary]
Auto Trait Implementations§
impl Freeze for ModbusControlSession
impl !RefUnwindSafe for ModbusControlSession
impl Send for ModbusControlSession
impl Sync for ModbusControlSession
impl Unpin for ModbusControlSession
impl UnsafeUnpin for ModbusControlSession
impl !UnwindSafe for ModbusControlSession
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