Enum UserRpcObject
pub enum UserRpcObject<'c, C>where
C: GodotClass,{
Internal(&'c mut C),
External(Gd<C>),
}Expand description
Represents an object that RPCs can be called on.
You generally do not need to create this manually, rather it used internally by the type-safe RPC API.
Variants§
Internal(&'c mut C)
Holds a mutable reference to the GodotClass
External(Gd<C>)
Holds a Gd pointer to the GodotClass
Implementations§
§impl<'c, C> UserRpcObject<'c, C>
impl<'c, C> UserRpcObject<'c, C>
Auto Trait Implementations§
impl<'c, C> Freeze for UserRpcObject<'c, C>
impl<'c, C> RefUnwindSafe for UserRpcObject<'c, C>where
C: RefUnwindSafe,
impl<'c, C> !Send for UserRpcObject<'c, C>
impl<'c, C> !Sync for UserRpcObject<'c, C>
impl<'c, C> Unpin for UserRpcObject<'c, C>
impl<'c, C> UnsafeUnpin for UserRpcObject<'c, C>
impl<'c, C> !UnwindSafe for UserRpcObject<'c, C>
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