Struct BuffChange
pub struct BuffChange {
pub common: CommonEvent,
pub duration_change: i32,
pub new_duration: u32,
pub stack_id: u32,
}Expand description
Buff change.
Fields§
§common: CommonEventCommon combat event information.
duration_change: i32Duration difference in milliseconds.
new_duration: u32New duration in milliseconds.
stack_id: u32Buff stack (instance) id.
Trait Implementations§
§impl AsMut<CommonEvent> for BuffChange
impl AsMut<CommonEvent> for BuffChange
§fn as_mut(&mut self) -> &mut CommonEvent
fn as_mut(&mut self) -> &mut CommonEvent
Converts this type into a mutable reference of the (usually inferred) input type.
§impl AsRef<CommonEvent> for BuffChange
impl AsRef<CommonEvent> for BuffChange
§fn as_ref(&self) -> &CommonEvent
fn as_ref(&self) -> &CommonEvent
Converts this type into a shared reference of the (usually inferred) input type.
§impl Clone for BuffChange
impl Clone for BuffChange
§fn clone(&self) -> BuffChange
fn clone(&self) -> BuffChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BuffChange
impl Debug for BuffChange
§impl Deref for BuffChange
impl Deref for BuffChange
§type Target = CommonEvent
type Target = CommonEvent
The resulting type after dereferencing.
§fn deref(&self) -> &<BuffChange as Deref>::Target
fn deref(&self) -> &<BuffChange as Deref>::Target
Dereferences the value.
§impl DerefMut for BuffChange
impl DerefMut for BuffChange
§fn deref_mut(&mut self) -> &mut <BuffChange as Deref>::Target
fn deref_mut(&mut self) -> &mut <BuffChange as Deref>::Target
Mutably dereferences the value.
§impl<'de> Deserialize<'de> for BuffChange
impl<'de> Deserialize<'de> for BuffChange
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffChange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuffChange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Extract for BuffChange
impl Extract for BuffChange
§impl From<BuffChange> for CommonEvent
impl From<BuffChange> for CommonEvent
§fn from(value: BuffChange) -> CommonEvent
fn from(value: BuffChange) -> CommonEvent
Converts to this type from the input type.
§impl Serialize for BuffChange
impl Serialize for BuffChange
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl TryExtract for BuffChange
impl TryExtract for BuffChange
§fn can_extract(event: &Event) -> bool
fn can_extract(event: &Event) -> bool
Checks whether
Self can be extracted from the event.§fn try_extract(event: &Event) -> Option<Self>
fn try_extract(event: &Event) -> Option<Self>
Attempts to extract
Self from the combat event.Auto Trait Implementations§
impl Freeze for BuffChange
impl RefUnwindSafe for BuffChange
impl Send for BuffChange
impl Sync for BuffChange
impl Unpin for BuffChange
impl UnsafeUnpin for BuffChange
impl UnwindSafe for BuffChange
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