pub struct EventRequest<'a> {
pub event_type: EventType,
pub event_desc: &'a [u8],
}Expand description
event_request() (Table 56): module → host. The event_desc bytes define
the event; their format depends on event_type (Table 58 — for a Timer,
40-bit start_time + 24-bit duration). An empty event_desc cancels any
previously-booked event of this type. Carried verbatim for fidelity.
Fields§
§event_type: EventTypeevent_type.
event_desc: &'a [u8]The event_desc block (format depends on event_type).
Trait Implementations§
Source§impl<'a> Clone for EventRequest<'a>
impl<'a> Clone for EventRequest<'a>
Source§fn clone(&self) -> EventRequest<'a>
fn clone(&self) -> EventRequest<'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 moreSource§impl<'a> Debug for EventRequest<'a>
impl<'a> Debug for EventRequest<'a>
impl<'a> Eq for EventRequest<'a>
Source§impl<'a> Parse<'a> for EventRequest<'a>
impl<'a> Parse<'a> for EventRequest<'a>
Source§impl<'a> PartialEq for EventRequest<'a>
impl<'a> PartialEq for EventRequest<'a>
Source§impl<'a> Serialize for EventRequest<'a>
Available on crate feature serde only.
impl<'a> Serialize for EventRequest<'a>
Available on crate feature
serde only.Source§impl Serialize for EventRequest<'_>
impl Serialize for EventRequest<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for EventRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for EventRequest<'a>
impl<'a> RefUnwindSafe for EventRequest<'a>
impl<'a> Send for EventRequest<'a>
impl<'a> Sync for EventRequest<'a>
impl<'a> Unpin for EventRequest<'a>
impl<'a> UnsafeUnpin for EventRequest<'a>
impl<'a> UnwindSafe for EventRequest<'a>
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