pub enum RxAction {
WaitInFlight,
Harvest,
AbnormalHalt,
Arm,
Rearm,
}Expand description
受信ポーリングが次に取るべき動作。
Variants§
WaitInFlight
転送中でまだデータが来ていない。今回は何もせず次のポーリングを待つ。 呼び出し側は関数を抜けてよいが、他の処理を止めてはいけない。
Harvest
転送完了。データを取り込む。
AbnormalHalt
転送は終わったが完了ビットが立っていない(エラー等)。 記録したうえで必ず再アームする。ここで諦めると受信が永久に止まる。
Arm
転送が飛んでいない。新規に受信を開始する。
Rearm
NAK 応答。異常ではないので記録せず、ただちに再アームする。
Trait Implementations§
impl Copy for RxAction
impl Eq for RxAction
impl StructuralPartialEq for RxAction
Auto Trait Implementations§
impl Freeze for RxAction
impl RefUnwindSafe for RxAction
impl Send for RxAction
impl Sync for RxAction
impl Unpin for RxAction
impl UnsafeUnpin for RxAction
impl UnwindSafe for RxAction
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.