#[non_exhaustive]pub enum ExchangeOutcome {
Reply(Reply),
Busy,
Timeout,
Offline,
}Expand description
Outcome of a single command/reply exchange.
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.
Reply(Reply)
PD answered with a typed reply.
Busy
PD answered with osdp_BUSY. Caller may try again later.
Timeout
No reply within the configured budget after exhausting retries.
Offline
PD has been silent for ≥ crate::OFFLINE_THRESHOLD_MS.
Trait Implementations§
Source§impl Clone for ExchangeOutcome
impl Clone for ExchangeOutcome
Source§fn clone(&self) -> ExchangeOutcome
fn clone(&self) -> ExchangeOutcome
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 moreSource§impl Debug for ExchangeOutcome
impl Debug for ExchangeOutcome
Source§impl PartialEq for ExchangeOutcome
impl PartialEq for ExchangeOutcome
impl Eq for ExchangeOutcome
impl StructuralPartialEq for ExchangeOutcome
Auto Trait Implementations§
impl Freeze for ExchangeOutcome
impl RefUnwindSafe for ExchangeOutcome
impl Send for ExchangeOutcome
impl Sync for ExchangeOutcome
impl Unpin for ExchangeOutcome
impl UnsafeUnpin for ExchangeOutcome
impl UnwindSafe for ExchangeOutcome
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