pub struct Event {
pub event_type: String,
pub data: EventData,
pub positional_args: Vec<String>,
pub keyword_args: HashMap<String, String>,
pub message: ControlMessage,
}Fields§
§event_type: String§data: EventData§positional_args: Vec<String>§keyword_args: HashMap<String, String>§message: ControlMessageImplementations§
Source§impl Event
impl Event
pub fn arrived_at(&self) -> SystemTime
pub fn is_malformed(&self) -> bool
pub fn listener_type(&self) -> EventType
pub fn malformed(message: ControlMessage, reason: String) -> Self
pub fn parse(message: ControlMessage) -> Result<Self>
pub fn from_content(content: &str) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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