pub struct EscapeInterdictionEvent {
pub interdictor: String,
pub is_player: bool,
pub is_thargoid: bool,
}
Expand description
Fired when the player escapes an interdiction attempt.
Fields§
§interdictor: String
The name of the player or vessel that tried to interdict the player.
is_player: bool
Whether the interdictor is another player.
is_thargoid: bool
Whether the interdictor is a Thargoid vessel.
Implementations§
Source§impl EscapeInterdictionEvent
impl EscapeInterdictionEvent
Sourcepub fn is_thargoid(&self) -> bool
pub fn is_thargoid(&self) -> bool
Whether the interdictor is a Thargoid vessel.
Sourcepub fn is_npc_pilot(&self) -> bool
pub fn is_npc_pilot(&self) -> bool
Whether the interdictor is an NPC pilot.
Trait Implementations§
Source§impl Clone for EscapeInterdictionEvent
impl Clone for EscapeInterdictionEvent
Source§fn clone(&self) -> EscapeInterdictionEvent
fn clone(&self) -> EscapeInterdictionEvent
Returns a copy 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 moreSource§impl Debug for EscapeInterdictionEvent
impl Debug for EscapeInterdictionEvent
Source§impl<'de> Deserialize<'de> for EscapeInterdictionEvent
impl<'de> Deserialize<'de> for EscapeInterdictionEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EscapeInterdictionEvent
impl PartialEq for EscapeInterdictionEvent
Source§impl Serialize for EscapeInterdictionEvent
impl Serialize for EscapeInterdictionEvent
impl StructuralPartialEq for EscapeInterdictionEvent
Auto Trait Implementations§
impl Freeze for EscapeInterdictionEvent
impl RefUnwindSafe for EscapeInterdictionEvent
impl Send for EscapeInterdictionEvent
impl Sync for EscapeInterdictionEvent
impl Unpin for EscapeInterdictionEvent
impl UnwindSafe for EscapeInterdictionEvent
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