pub struct EpochBlock<'a> {
pub start: Option<fn()>,
pub end: Option<fn()>,
pub blob: Option<&'a [u64]>,
}Expand description
One entry of a network’s epoch list — the Rust equivalent of the generated
EpochBlock_ItemTypeDef.
start runs before the hardware epoch is started (typically MCU/NPU cache
maintenance for the epoch’s inputs), end after it completes (cache
invalidation of outputs, or the body of a pure software epoch).
Fields§
§start: Option<fn()>Called before the epoch (blob) is started.
end: Option<fn()>Called after the epoch completes.
blob: Option<&'a [u64]>Epoch controller blob to execute; None for a pure software epoch.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for EpochBlock<'a>
impl<'a> Clone for EpochBlock<'a>
Source§fn clone(&self) -> EpochBlock<'a>
fn clone(&self) -> EpochBlock<'a>
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<'a> Copy for EpochBlock<'a>
Auto Trait Implementations§
impl<'a> Freeze for EpochBlock<'a>
impl<'a> RefUnwindSafe for EpochBlock<'a>
impl<'a> Send for EpochBlock<'a>
impl<'a> Sync for EpochBlock<'a>
impl<'a> Unpin for EpochBlock<'a>
impl<'a> UnsafeUnpin for EpochBlock<'a>
impl<'a> UnwindSafe for EpochBlock<'a>
Blanket Implementations§
impl<T, I> Binding<I, NoHandler<I>> for T
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