Struct Event
pub struct Event {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub flags: u32,
pub name: String,
pub event_type: CilTypeRef,
pub fn_on_add: OnceLock<MethodRef>,
pub fn_on_remove: OnceLock<MethodRef>,
pub fn_on_raise: OnceLock<MethodRef>,
pub fn_on_other: OnceLock<MethodRef>,
pub custom_attributes: CustomAttributeValueList,
}Expand description
Represents an Event that a Type can have. Similar to EventRaw but with resolved indexes and owned data.
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
flags: u32a 2-byte bitmask of type EventAttributes, §II.23.1.4
name: StringThe name of the event
event_type: CilTypeRefan index into a TypeDef, a TypeRef, or TypeSpec table; more precisely, a TypeDefOrRef (§II.24.2.6) coded index
fn_on_add: OnceLock<MethodRef>The Method that triggers ‘OnAdd’
fn_on_remove: OnceLock<MethodRef>The Method that triggers ‘OnRemove’
fn_on_raise: OnceLock<MethodRef>The Method that triggers ‘OnRaise’
fn_on_other: OnceLock<MethodRef>The Method that triggers ‘OnOther’
custom_attributes: CustomAttributeValueListCustom attributes attached to this event
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more