pub struct Event {
pub ntype: EventType,
pub id: EventId,
}
Expand description
Notification event
Fields§
§ntype: EventType
§id: EventId
Implementations§
Source§impl Event
impl Event
pub fn new(ntype: EventType, message: &str, client: &str) -> Event
pub fn begin(message: &str, client: &str) -> Event
pub fn end(message: &str, client: &str) -> Event
pub fn index_mark(mark: String, message: &str, client: &str) -> Event
pub fn cancel(message: &str, client: &str) -> Event
pub fn pause(message: &str, client: &str) -> Event
pub fn resume(message: &str, client: &str) -> Event
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 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