pub struct Request {
pub frame: DataFrame,
pub response: Option<Duration>,
pub callback: Option<(u8, Duration)>,
pub callback_follows: fn(&DataFrame) -> bool,
}Expand description
One exchange with the controller.
Fields§
§frame: DataFrameThe frame to send.
response: Option<Duration>Wait this long for a response frame; None when none comes.
callback: Option<(u8, Duration)>Wait this long for the callback with this id; None when none comes.
callback_follows: fn(&DataFrame) -> boolGiven the response, whether a callback will follow (e.g. SendData’s “accepted” byte). Defaults to the first response byte being non-zero.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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