Enum ur20::ChannelValue [−][src]
pub enum ChannelValue { Bit(bool), Decimal32(f32), ComRsIn(RsIn), ComRsOut(RsOut), Bytes(Vec<u8>), Disabled, None, }
Data type used by the module channels.
Variants
Bit(bool)
A single bit (0 == false)
Decimal32(f32)
A 32-Bit float value.
ComRsIn(RsIn)
Special input data used by 1COM-232-485-422
ComRsOut(RsOut)
Special output data used by 1COM-232-485-422
Bytes(Vec<u8>)
Raw binary data.
Disabled
The channel is currently disabled.
None
The channel has no data at all.
Trait Implementations
impl Debug for ChannelValue
[src]
impl Debug for ChannelValue
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for ChannelValue
[src]
impl Clone for ChannelValue
fn clone(&self) -> ChannelValue
[src]
fn clone(&self) -> ChannelValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for ChannelValue
[src]
impl PartialEq for ChannelValue
fn eq(&self, other: &ChannelValue) -> bool
[src]
fn eq(&self, other: &ChannelValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ChannelValue) -> bool
[src]
fn ne(&self, other: &ChannelValue) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ChannelValue
impl Send for ChannelValue
impl Sync for ChannelValue
impl Sync for ChannelValue