pub struct Step<X> {
pub msg: Vec<u8>,
pub expect: X,
pub timeout: Duration,
pub what: &'static str,
pub index: Option<u16>,
}Expand description
One message to send and the reply that completes it.
Fields§
§msg: Vec<u8>The bytes to send.
expect: XWhat Protocol::on_message needs to know which reply completes
the step.
timeout: DurationBounds a dead link; never paces traffic.
what: &'static strThe step, for people (“program write”). Errors name it.
index: Option<u16>The step’s slot, if any. Errors name it.
Trait Implementations§
Auto Trait Implementations§
impl<X> Freeze for Step<X>where
X: Freeze,
impl<X> RefUnwindSafe for Step<X>where
X: RefUnwindSafe,
impl<X> Send for Step<X>where
X: Send,
impl<X> Sync for Step<X>where
X: Sync,
impl<X> Unpin for Step<X>where
X: Unpin,
impl<X> UnsafeUnpin for Step<X>where
X: UnsafeUnpin,
impl<X> UnwindSafe for Step<X>where
X: 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