pub struct RunCommand { /* private fields */ }Expand description
Command for putting the PLC into run mode.
Implementations§
Source§impl RunCommand
impl RunCommand
Sourcepub fn new(
destination: NodeAddress,
source: NodeAddress,
sid: u8,
mode: PlcMode,
) -> Self
pub fn new( destination: NodeAddress, source: NodeAddress, sid: u8, mode: PlcMode, ) -> Self
Creates a new run command.
§Arguments
destination- Destination node addresssource- Source node addresssid- Service ID for request/response matchingmode- PLC operating mode
§Example
use omron_fins::{RunCommand, PlcMode, NodeAddress};
let cmd = RunCommand::new(
NodeAddress::new(0, 10, 0),
NodeAddress::new(0, 1, 0),
0x01,
PlcMode::Monitor,
);Trait Implementations§
Source§impl Clone for RunCommand
impl Clone for RunCommand
Source§fn clone(&self) -> RunCommand
fn clone(&self) -> RunCommand
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 moreAuto Trait Implementations§
impl Freeze for RunCommand
impl RefUnwindSafe for RunCommand
impl Send for RunCommand
impl Sync for RunCommand
impl Unpin for RunCommand
impl UnsafeUnpin for RunCommand
impl UnwindSafe for RunCommand
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