pub enum ClosedTargetEvent {
OnEventNoPayload {},
OnEventStructPayload {
some_field: i32,
},
OnEventTablePayload {
payload: TablePayload,
},
OnEventUnionPayload {
payload: UnionPayload,
},
}
Variants§
OnEventNoPayload
OnEventStructPayload
OnEventTablePayload
Fields
§
payload: TablePayload
OnEventUnionPayload
Fields
§
payload: UnionPayload
Implementations§
Source§impl ClosedTargetEvent
impl ClosedTargetEvent
pub fn into_on_event_no_payload(self) -> Option<()>
pub fn into_on_event_struct_payload(self) -> Option<i32>
pub fn into_on_event_table_payload(self) -> Option<TablePayload>
pub fn into_on_event_union_payload(self) -> Option<UnionPayload>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClosedTargetEvent
impl RefUnwindSafe for ClosedTargetEvent
impl Send for ClosedTargetEvent
impl Sync for ClosedTargetEvent
impl Unpin for ClosedTargetEvent
impl UnwindSafe for ClosedTargetEvent
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