pub struct OnGuiClosed;Expand description
Called when the player closes the GUI they have open.
This can only be raised when the GUI’s player controller is still valid. If a GUI is thus closed due to the player disconnecting, dying, or becoming a spectator in other ways, it won’t cause this event to be raised.
It’s not advised to open any other GUI during this event because if this is run as a request to open a different GUI the game will force close the new opened GUI without notice to ensure the original requested GUI is opened.
Implementations§
Trait Implementations§
Source§impl Clone for OnGuiClosed
impl Clone for OnGuiClosed
Source§fn clone(&self) -> OnGuiClosed
fn clone(&self) -> OnGuiClosed
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnGuiClosed
Source§impl Debug for OnGuiClosed
impl Debug for OnGuiClosed
impl Eq for OnGuiClosed
Source§impl PartialEq for OnGuiClosed
impl PartialEq for OnGuiClosed
impl StructuralPartialEq for OnGuiClosed
Auto Trait Implementations§
impl Freeze for OnGuiClosed
impl RefUnwindSafe for OnGuiClosed
impl Send for OnGuiClosed
impl Sync for OnGuiClosed
impl Unpin for OnGuiClosed
impl UnsafeUnpin for OnGuiClosed
impl UnwindSafe for OnGuiClosed
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