#[repr(i32)]pub enum ObjectNotification {
POSTINITIALIZE = 0,
PREDELETE = 1,
EXTENSION_RELOADED = 2,
Unknown(i32),
}
Expand description
Variants§
POSTINITIALIZE = 0
PREDELETE = 1
EXTENSION_RELOADED = 2
Unknown(i32)
Since Godot represents notifications as integers, it’s always possible that a notification outside the known types
is received. For example, the user can manually issue notifications through Object::notify()
.
This is also necessary if you develop an extension on a Godot version and want to be forward-compatible with newer versions. If Godot adds new notifications, they will be unknown to your extension, but you can still handle them.
Trait Implementations§
Source§impl Clone for ObjectNotification
impl Clone for ObjectNotification
Source§fn clone(&self) -> ObjectNotification
fn clone(&self) -> ObjectNotification
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjectNotification
impl Debug for ObjectNotification
Source§impl From<ObjectNotification> for i32
impl From<ObjectNotification> for i32
Source§fn from(notification: ObjectNotification) -> i32
fn from(notification: ObjectNotification) -> i32
Converts to this type from the input type.
Source§impl From<i32> for ObjectNotification
impl From<i32> for ObjectNotification
Source§impl Hash for ObjectNotification
impl Hash for ObjectNotification
Source§impl Ord for ObjectNotification
impl Ord for ObjectNotification
Source§fn cmp(&self, other: &ObjectNotification) -> Ordering
fn cmp(&self, other: &ObjectNotification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ObjectNotification
impl PartialEq for ObjectNotification
Source§impl PartialOrd for ObjectNotification
impl PartialOrd for ObjectNotification
impl Copy for ObjectNotification
impl Eq for ObjectNotification
impl StructuralPartialEq for ObjectNotification
Auto Trait Implementations§
impl Freeze for ObjectNotification
impl RefUnwindSafe for ObjectNotification
impl Send for ObjectNotification
impl Sync for ObjectNotification
impl Unpin for ObjectNotification
impl UnwindSafe for ObjectNotification
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