[−][src]Struct tokio_modbus::slave::Slave
A single byte for addressing Modbus slave devices.
Methods
impl Slave
[src]
pub const fn broadcast() -> Self
[src]
The special address for sending a broadcast message to all connected Modbus slave devices at once. Broadcast messages are one-way and sent from the master to all slaves, i.e. a request without a response.
pub const fn min_device() -> Self
[src]
The minimum address of a single Modbus slave device.
pub const fn max_device() -> Self
[src]
The maximum address of a single Modbus slave device.
pub const fn tcp_device() -> Self
[src]
The reserved address for sending a message to a directly connected Modbus TCP device, i.e. if not forwarded through a TCP/RTU gateway according to the unit identifier.
MODBUS Messaging on TCP/IP Implementation Guide, page 23 "On TCP/IP, the MODBUS server is addressed using its IP address; therefore, the MODBUS Unit Identifier is useless. The value 0xFF has to be used."
pub fn is_broadcast(self) -> bool
[src]
pub fn is_single_device(self) -> bool
[src]
pub fn is_reserved(self) -> bool
[src]
Trait Implementations
impl Copy for Slave
[src]
impl PartialOrd<Slave> for Slave
[src]
fn partial_cmp(&self, other: &Slave) -> Option<Ordering>
[src]
fn lt(&self, other: &Slave) -> bool
[src]
fn le(&self, other: &Slave) -> bool
[src]
fn gt(&self, other: &Slave) -> bool
[src]
fn ge(&self, other: &Slave) -> bool
[src]
impl PartialEq<Slave> for Slave
[src]
impl Eq for Slave
[src]
impl Ord for Slave
[src]
fn cmp(&self, other: &Slave) -> Ordering
[src]
default fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
default fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
default fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Clone for Slave
[src]
fn clone(&self) -> Slave
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<u8> for Slave
[src]
impl From<Slave> for SlaveId
[src]
impl Display for Slave
[src]
impl Debug for Slave
[src]
impl FromStr for Slave
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,