pub struct ChannelMessage {
pub pid: u32,
pub message: Value,
}Expand description
One message a child wrote on its channel.
Fields§
§pid: u32§message: ValueThe message: parsed JSON when it was JSON, else a JSON string.
Implementations§
Source§impl ChannelMessage
impl ChannelMessage
Sourcepub fn from_event(event: &Event) -> Option<Self>
pub fn from_event(event: &Event) -> Option<Self>
The channel message an event carries, if it is one.
Trait Implementations§
Source§impl Clone for ChannelMessage
impl Clone for ChannelMessage
Source§impl Debug for ChannelMessage
impl Debug for ChannelMessage
Source§impl PartialEq for ChannelMessage
impl PartialEq for ChannelMessage
impl StructuralPartialEq for ChannelMessage
Auto Trait Implementations§
impl Freeze for ChannelMessage
impl RefUnwindSafe for ChannelMessage
impl Send for ChannelMessage
impl Sync for ChannelMessage
impl Unpin for ChannelMessage
impl UnsafeUnpin for ChannelMessage
impl UnwindSafe for ChannelMessage
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