Struct hazardflow_designs::std::hazard::Ready
source · pub struct Ready<R> {
pub ready: bool,
pub inner: R,
}
Expand description
Wrapping resolver type for AndH
.
Fields§
§ready: bool
Whether the receiver of the payload is ready to accept a new payload.
inner: R
Inner resolver type.
Implementations§
Trait Implementations§
source§impl<R: Copy> From<Ready<R>> for HOption<R>
impl<R: Copy> From<Ready<R>> for HOption<R>
Transforms Ready<R>
to Option<R>
.
It is mainly used when the structural hazard (ready bit) has higher priority than data/control hazards.
impl<R: Copy> Copy for Ready<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for Ready<R>where
R: RefUnwindSafe,
impl<R> Send for Ready<R>where
R: Send,
impl<R> Sync for Ready<R>where
R: Sync,
impl<R> Unpin for Ready<R>where
R: Unpin,
impl<R> UnwindSafe for Ready<R>where
R: UnwindSafe,
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