#[non_exhaustive]pub enum RouteHop {
Backplane {
port: u8,
slot: u8,
},
Ethernet {
port: u8,
address: String,
},
}Expand description
Ordered route hop for PLC communication.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Backplane
Backplane/chassis hop. Rockwell ControlLogix backplanes normally use port 1.
Ethernet
Ethernet hop using an IPv4 link address. Rockwell Ethernet ports commonly use port 2.
Trait Implementations§
Source§impl From<&RouteHop> for SchemaRouteHop
impl From<&RouteHop> for SchemaRouteHop
impl Eq for RouteHop
impl StructuralPartialEq for RouteHop
Auto Trait Implementations§
impl Freeze for RouteHop
impl RefUnwindSafe for RouteHop
impl Send for RouteHop
impl Sync for RouteHop
impl Unpin for RouteHop
impl UnsafeUnpin for RouteHop
impl UnwindSafe for RouteHop
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.