pub enum FarmEvent<'a> {
AdFrame {
seq: u8,
buffer_available: bool,
fdu: &'a [u8],
},
BdFrame {
fdu: &'a [u8],
},
BcFrame {
command: ControlCommand,
},
InvalidFrame,
BufferRelease,
ClcwReport,
}Expand description
Events that drive the FARM-1 state machine.
Variants§
AdFrame
A valid Type-AD transfer frame arrived.
Fields
BdFrame
A valid Type-BD transfer frame arrived.
BcFrame
A valid Type-BC transfer frame with a control command.
Fields
§
command: ControlCommandThe control command.
InvalidFrame
An invalid frame arrived (failed validation).
BufferRelease
Buffer space became available (flow control release).
ClcwReport
Time to generate a CLCW report.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FarmEvent<'a>
impl<'a> RefUnwindSafe for FarmEvent<'a>
impl<'a> Send for FarmEvent<'a>
impl<'a> Sync for FarmEvent<'a>
impl<'a> Unpin for FarmEvent<'a>
impl<'a> UnsafeUnpin for FarmEvent<'a>
impl<'a> UnwindSafe for FarmEvent<'a>
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