FiredEvent
struct · ferroui-diagnostics · v0.5.0
struct FiredEvent
A routed event recorded by the events page: the event, when it was raised, and the chain of the elements it visited.
Members
newis_part_of_same_event_chaintrigger_timeeventis_handledevent_chaindisplay_textoriginatorhandled_byset_handled_byadd_to_chain
new
fn new(event_args: &RoutedEventArgs, originator: Rc<EventChainLink>, trigger_time: SystemTime) -> Rc<Self>
C# new FiredEvent(RoutedEventArgs eventArgs, EventChainLink originator, DateTime triggerTime):
the event of event_args, with originator as the first link of its
chain, raised at the instant trigger_time.
is_part_of_same_event_chain
fn is_part_of_same_event_chain(self: &Self, e: &RoutedEventArgs) -> bool
Whether e are the args of the same raise of the same event.
trigger_time
fn trigger_time(self: &Self) -> SystemTime
The instant the event was raised.
event
fn event(self: &Self) -> RoutedEvent
The routed event.
is_handled
fn is_handled(self: &Self) -> bool
Whether an element on the route handled the event.
event_chain
fn event_chain(self: &Self) -> FerroList<Rc<EventChainLink>>
The elements the event visited, in order.
display_text
fn display_text(self: &Self) -> String
The description of the event: its name, its source, its routing strategies and what handled it.
originator
fn originator(self: &Self) -> Rc<EventChainLink>
The first link of the chain: the source of the event.
handled_by
fn handled_by(self: &Self) -> Option<Rc<EventChainLink>>
The link of the element that handled the event.
set_handled_by
fn set_handled_by(self: &Self, value: Option<Rc<EventChainLink>>)
add_to_chain
fn add_to_chain(self: &Self, link: Rc<EventChainLink>)
Adds the link of the next element the event visited; a link whose route differs from the route of the previous link begins a new route.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelPartialEqINotifyPropertyChangedMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.