pub enum FopAction {
TransmitAd {
seq: u8,
},
TransmitBd,
TransmitBcUnlock,
TransmitBcSetVr {
vr: u8,
},
StartTimer,
StopTimer,
Accept,
Reject,
Alert,
Terminated,
Acknowledged {
seq: u8,
},
}Expand description
Actions that FOP-1 requests the driver to perform.
Variants§
TransmitAd
Transmit a Type-AD frame with the given sequence number.
The driver should call FopMachine::get_fdu to get the data.
TransmitBd
Transmit a Type-BD frame.
TransmitBcUnlock
Transmit a Type-BC Unlock frame.
TransmitBcSetVr
Transmit a Type-BC Set V(R) frame.
StartTimer
Start (or restart) timer T1 with the configured initial value.
StopTimer
Stop timer T1.
Accept
AD service has been accepted (init complete).
Reject
The FDU was rejected (queue full, wrong state, etc).
Alert
An alert condition: link has failed.
Terminated
AD service was successfully terminated.
Acknowledged
An AD frame was acknowledged by the receiver.
Trait Implementations§
impl Copy for FopAction
impl Eq for FopAction
impl StructuralPartialEq for FopAction
Auto Trait Implementations§
impl Freeze for FopAction
impl RefUnwindSafe for FopAction
impl Send for FopAction
impl Sync for FopAction
impl Unpin for FopAction
impl UnsafeUnpin for FopAction
impl UnwindSafe for FopAction
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