#[repr(C)]pub struct CoreMessage {
pub msg_type: u8,
pub src_core: u8,
pub payload: u16,
}Expand description
Message types for inter-core communication (4 bytes)
Fields§
§msg_type: u8§src_core: u8§payload: u16Implementations§
Source§impl CoreMessage
impl CoreMessage
pub const TYPE_IDLE: u8 = 0u8
pub const TYPE_WORK_REQUEST: u8 = 1u8
pub const TYPE_WORK_AVAILABLE: u8 = 2u8
pub const TYPE_RESULT: u8 = 3u8
pub const TYPE_SYNC: u8 = 4u8
pub const TYPE_STEAL_REQUEST: u8 = 5u8
pub const TYPE_STEAL_RESPONSE: u8 = 6u8
Trait Implementations§
Source§impl Clone for CoreMessage
impl Clone for CoreMessage
Source§fn clone(&self) -> CoreMessage
fn clone(&self) -> CoreMessage
Returns a duplicate 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 moreimpl Copy for CoreMessage
Auto Trait Implementations§
impl Freeze for CoreMessage
impl RefUnwindSafe for CoreMessage
impl Send for CoreMessage
impl Sync for CoreMessage
impl Unpin for CoreMessage
impl UnwindSafe for CoreMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more