#[repr(u16)]pub enum Command {
DevInfo = 1,
Read = 2,
Write = 3,
ReadWrite = 9,
ReadState = 4,
WriteControl = 5,
AddNotification = 6,
DeleteNotification = 7,
Notification = 8,
}
Expand description
An ADS protocol command.
Variants§
DevInfo = 1
Return device info
Read = 2
Read some data
Write = 3
Write some data
ReadWrite = 9
Write some data, then read back some data (used as a poor-man’s function call)
ReadState = 4
Read the ADS and device state
WriteControl = 5
Set the ADS and device state
AddNotification = 6
Add a notification for a given index
DeleteNotification = 7
Add a notification for a given index
Notification = 8
Change occurred in a given notification, can be sent by the PLC only
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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