pub struct RemoteTerminal {
pub address: Address,
pub state: RTState,
pub last_seen: Option<Instant>,
pub error_count: u32,
pub success_count: u32,
}Expand description
Information about a Remote Terminal
Fields§
§address: AddressAddress of the RT
state: RTStateCurrent state
last_seen: Option<Instant>Last communication time
error_count: u32Number of errors detected
success_count: u32Number of successful transactions
Implementations§
Source§impl RemoteTerminal
impl RemoteTerminal
Sourcepub fn record_success(&mut self)
pub fn record_success(&mut self)
Record a successful transaction
Sourcepub fn record_error(&mut self)
pub fn record_error(&mut self)
Record a failed transaction
Sourcepub fn is_responding(&self, timeout: Duration) -> bool
pub fn is_responding(&self, timeout: Duration) -> bool
Check if device is responding (seen within timeout)
Trait Implementations§
Source§impl Clone for RemoteTerminal
impl Clone for RemoteTerminal
Source§fn clone(&self) -> RemoteTerminal
fn clone(&self) -> RemoteTerminal
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteTerminal
impl RefUnwindSafe for RemoteTerminal
impl Send for RemoteTerminal
impl Sync for RemoteTerminal
impl Unpin for RemoteTerminal
impl UnwindSafe for RemoteTerminal
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