pub enum PerfChannelMessage {
Dropped(u64),
Event {
map_name: String,
cpuid: i32,
data: Vec<u8>,
},
}Expand description
Message format for messages sent back across the channel
Messages could either be dropped in case of messages lost, usually caused by a a filled up perf buffer, or an event with source and data
Variants§
Dropped(u64)
A count of how many messages were lost
Event
A received message with information about its source
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PerfChannelMessage
impl RefUnwindSafe for PerfChannelMessage
impl Send for PerfChannelMessage
impl Sync for PerfChannelMessage
impl Unpin for PerfChannelMessage
impl UnwindSafe for PerfChannelMessage
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> 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