#[repr(C)]pub struct event {
pub userdata: userdata,
pub error: errno,
pub type: eventtype,
pub union: event_union,
}Expand description
An event that occurred.
Fields§
§userdata: userdataUser-provided value that got attached to
subscription.userdata.
error: errnoIf non-zero, an error that occurred while processing the subscription request.
type: eventtypeThe type of the event that occurred.
union: event_unionTrait 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