pub enum ApplicationRole {
Master,
Slave,
}Expand description
Application-layer role. Set by ModbusMaster / ModbusSlave when they
take ownership of an application layer.
RTU framing differentiates request vs response by role (request and response of the same FC may have different lengths).
Variants§
Trait Implementations§
Source§impl Clone for ApplicationRole
impl Clone for ApplicationRole
Source§fn clone(&self) -> ApplicationRole
fn clone(&self) -> ApplicationRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApplicationRole
impl Debug for ApplicationRole
Source§impl PartialEq for ApplicationRole
impl PartialEq for ApplicationRole
Source§fn eq(&self, other: &ApplicationRole) -> bool
fn eq(&self, other: &ApplicationRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApplicationRole
impl Eq for ApplicationRole
impl StructuralPartialEq for ApplicationRole
Auto Trait Implementations§
impl Freeze for ApplicationRole
impl RefUnwindSafe for ApplicationRole
impl Send for ApplicationRole
impl Sync for ApplicationRole
impl Unpin for ApplicationRole
impl UnsafeUnpin for ApplicationRole
impl UnwindSafe for ApplicationRole
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