Struct race_test::prelude::DispatchEvent
source · pub struct DispatchEvent {
pub timeout: u64,
pub event: Event,
}Fields§
§timeout: u64§event: EventImplementations§
source§impl DispatchEvent
impl DispatchEvent
pub fn new(event: Event, timeout: u64) -> DispatchEvent
Trait Implementations§
source§impl BorshDeserialize for DispatchEventwhere
u64: BorshDeserialize,
Event: BorshDeserialize,
impl BorshDeserialize for DispatchEventwhere u64: BorshDeserialize, Event: BorshDeserialize,
source§fn deserialize(buf: &mut &[u8]) -> Result<DispatchEvent, Error>
fn deserialize(buf: &mut &[u8]) -> Result<DispatchEvent, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§impl BorshSerialize for DispatchEventwhere
u64: BorshSerialize,
Event: BorshSerialize,
impl BorshSerialize for DispatchEventwhere u64: BorshSerialize, Event: BorshSerialize,
source§impl Clone for DispatchEvent
impl Clone for DispatchEvent
source§fn clone(&self) -> DispatchEvent
fn clone(&self) -> DispatchEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DispatchEvent
impl Debug for DispatchEvent
source§impl PartialEq for DispatchEvent
impl PartialEq for DispatchEvent
source§fn eq(&self, other: &DispatchEvent) -> bool
fn eq(&self, other: &DispatchEvent) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for DispatchEvent
impl StructuralEq for DispatchEvent
impl StructuralPartialEq for DispatchEvent
Auto Trait Implementations§
impl RefUnwindSafe for DispatchEvent
impl Send for DispatchEvent
impl Sync for DispatchEvent
impl Unpin for DispatchEvent
impl UnwindSafe for DispatchEvent
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