pub enum ScriptEvent {
Message(Message),
RealmCreated(RealmCreated),
RealmDestroyed(RealmDestroyed),
}Variants§
Implementations§
Source§impl ScriptEvent
impl ScriptEvent
pub fn identifier(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ScriptEvent
impl Clone for ScriptEvent
Source§fn clone(&self) -> ScriptEvent
fn clone(&self) -> ScriptEvent
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 moreSource§impl Debug for ScriptEvent
impl Debug for ScriptEvent
Source§impl<'de> Deserialize<'de> for ScriptEvent
impl<'de> Deserialize<'de> for ScriptEvent
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 From<Message> for ScriptEvent
impl From<Message> for ScriptEvent
Source§impl From<RealmCreated> for ScriptEvent
impl From<RealmCreated> for ScriptEvent
Source§fn from(v: RealmCreated) -> Self
fn from(v: RealmCreated) -> Self
Converts to this type from the input type.
Source§impl From<RealmDestroyed> for ScriptEvent
impl From<RealmDestroyed> for ScriptEvent
Source§fn from(v: RealmDestroyed) -> Self
fn from(v: RealmDestroyed) -> Self
Converts to this type from the input type.
Source§impl From<ScriptEvent> for Event
impl From<ScriptEvent> for Event
Source§fn from(v: ScriptEvent) -> Self
fn from(v: ScriptEvent) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScriptEvent
impl PartialEq for ScriptEvent
Source§impl Serialize for ScriptEvent
impl Serialize for ScriptEvent
Source§impl TryFrom<Event> for ScriptEvent
impl TryFrom<Event> for ScriptEvent
Source§impl TryFrom<ScriptEvent> for Message
impl TryFrom<ScriptEvent> for Message
Source§type Error = ScriptEvent
type Error = ScriptEvent
The type returned in the event of a conversion error.
Source§fn try_from(
e: ScriptEvent,
) -> Result<Self, <Message as TryFrom<ScriptEvent>>::Error>
fn try_from( e: ScriptEvent, ) -> Result<Self, <Message as TryFrom<ScriptEvent>>::Error>
Performs the conversion.
Source§impl TryFrom<ScriptEvent> for RealmCreated
impl TryFrom<ScriptEvent> for RealmCreated
Source§type Error = ScriptEvent
type Error = ScriptEvent
The type returned in the event of a conversion error.
Source§fn try_from(
e: ScriptEvent,
) -> Result<Self, <RealmCreated as TryFrom<ScriptEvent>>::Error>
fn try_from( e: ScriptEvent, ) -> Result<Self, <RealmCreated as TryFrom<ScriptEvent>>::Error>
Performs the conversion.
Source§impl TryFrom<ScriptEvent> for RealmDestroyed
impl TryFrom<ScriptEvent> for RealmDestroyed
Source§type Error = ScriptEvent
type Error = ScriptEvent
The type returned in the event of a conversion error.
Source§fn try_from(
e: ScriptEvent,
) -> Result<Self, <RealmDestroyed as TryFrom<ScriptEvent>>::Error>
fn try_from( e: ScriptEvent, ) -> Result<Self, <RealmDestroyed as TryFrom<ScriptEvent>>::Error>
Performs the conversion.
impl StructuralPartialEq for ScriptEvent
Auto Trait Implementations§
impl Freeze for ScriptEvent
impl RefUnwindSafe for ScriptEvent
impl Send for ScriptEvent
impl Sync for ScriptEvent
impl Unpin for ScriptEvent
impl UnsafeUnpin for ScriptEvent
impl UnwindSafe for ScriptEvent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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