pub trait TryExtract: Sized + Extract {
    // Required method
    fn can_extract(event: &Event) -> bool;

    // Provided method
    fn try_extract(event: &Event) -> Option<Self> { ... }
}
Expand description

Attempts to extract information from a combat event.

Required Methods§

source

fn can_extract(event: &Event) -> bool

Checks whether Self can be extracted from the event.

Provided Methods§

source

fn try_extract(event: &Event) -> Option<Self>

Attempts to extract Self from the combat event.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl TryExtract for RawBuffFormula

source§

impl TryExtract for AgentStatusEvent

source§

impl TryExtract for AttackTargetEvent

source§

impl TryExtract for BarrierUpdateEvent

source§

impl TryExtract for BreakbarPercentEvent

source§

impl TryExtract for BreakbarStateEvent

source§

impl TryExtract for BuffApplyEvent

source§

impl TryExtract for BuffDamageEvent

source§

impl TryExtract for BuffFormula

source§

impl TryExtract for BuffInfo

source§

impl TryExtract for BuffInitialEvent

source§

impl TryExtract for BuffRemoveEvent

source§

impl TryExtract for DownContributionEvent

source§

impl TryExtract for Effect

source§

impl TryExtract for EffectGUID

source§

impl TryExtract for EffectOld

source§

impl TryExtract for EnterCombatEvent

source§

impl TryExtract for ErrorEvent

source§

impl TryExtract for HealthUpdateEvent

source§

impl TryExtract for LogEvent

source§

impl TryExtract for MaxHealthEvent

source§

impl TryExtract for StackActiveEvent

source§

impl TryExtract for StackResetEvent

source§

impl TryExtract for TargetableEvent

source§

impl TryExtract for TeamChangeEvent

source§

impl TryExtract for ContentGUID

source§

impl TryExtract for AgentMarkerEvent

source§

impl TryExtract for SquadMarkerEvent

source§

impl TryExtract for GuildEvent

source§

impl TryExtract for RewardEvent

source§

impl TryExtract for TagEvent

source§

impl TryExtract for PositionEvent

source§

impl TryExtract for ActivationEvent

source§

impl TryExtract for SkillInfo

source§

impl TryExtract for SkillTiming

source§

impl TryExtract for StrikeEvent

source§

impl TryExtract for WeaponSwapEvent