pub struct Dispatch<'p> {
pub frame: &'p [u8],
pub resume: u32,
pub budget: usize,
pub resets: bool,
}Expand description
A request the engine wants executed.
Fields§
§frame: &'p [u8]Exactly one ULCP frame, in the grammar of the local bindings. Its TID is zero and receivers ignore it.
resume: u32Where in the logical trailing content — the value of a
CMD_PROP_IS, or the entry list of a CMD_PROP_ARE — this
response resumes. Zero for a request carrying no cursor.
budget: usizeOctets available for the reply frame, the envelope’s worst case already deducted.
resets: boolA reset-class command, which is answered by no response payload
at all. The caller executes it and completes with
Produced::no_response.
Implementations§
Trait Implementations§
impl<'p> Copy for Dispatch<'p>
impl<'p> Eq for Dispatch<'p>
impl<'p> StructuralPartialEq for Dispatch<'p>
Auto Trait Implementations§
impl<'p> Freeze for Dispatch<'p>
impl<'p> RefUnwindSafe for Dispatch<'p>
impl<'p> Send for Dispatch<'p>
impl<'p> Sync for Dispatch<'p>
impl<'p> Unpin for Dispatch<'p>
impl<'p> UnwindSafe for Dispatch<'p>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)