Enum ObjectNotification
#[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§
§impl Clone for ObjectNotification
impl Clone for ObjectNotification
§fn clone(&self) -> ObjectNotification
fn clone(&self) -> ObjectNotification
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 more§impl Debug for ObjectNotification
impl Debug for ObjectNotification
§impl From<i32> for ObjectNotification
impl From<i32> for ObjectNotification
§fn from(enumerator: i32) -> ObjectNotification
fn from(enumerator: i32) -> ObjectNotification
Always succeeds, mapping unknown integers to the Unknown
variant.
§impl Hash for ObjectNotification
impl Hash for ObjectNotification
§impl Ord for ObjectNotification
impl Ord for ObjectNotification
§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
§impl PartialEq for ObjectNotification
impl PartialEq for ObjectNotification
§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)