pub enum TxnOutcome {
Complete,
Retry,
Stalled,
Failed,
Pending,
}Expand description
トランザクションの判定結果。
Variants§
Complete
転送完了。データを確定してよい。
Retry
デバイスが一時的に受け付けられない。同じトグルで再試行する。
Stalled
エンドポイント停止。再試行せず、上位で CLEAR_FEATURE が必要。
Failed
回復不能なエラー。成功扱いにしてはいけない (送信済みとみなすとトグルとシーケンス番号がずれる)。
Pending
まだ何も起きていない。ポーリングを続ける。
Trait Implementations§
Source§impl Clone for TxnOutcome
impl Clone for TxnOutcome
Source§fn clone(&self) -> TxnOutcome
fn clone(&self) -> TxnOutcome
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 moreimpl Copy for TxnOutcome
Source§impl Debug for TxnOutcome
impl Debug for TxnOutcome
impl Eq for TxnOutcome
Source§impl PartialEq for TxnOutcome
impl PartialEq for TxnOutcome
Source§fn eq(&self, other: &TxnOutcome) -> bool
fn eq(&self, other: &TxnOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TxnOutcome
Auto Trait Implementations§
impl Freeze for TxnOutcome
impl RefUnwindSafe for TxnOutcome
impl Send for TxnOutcome
impl Sync for TxnOutcome
impl Unpin for TxnOutcome
impl UnsafeUnpin for TxnOutcome
impl UnwindSafe for TxnOutcome
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.