Struct RpcBuilder
pub struct RpcBuilder<'c, C>where
C: GodotClass,{ /* private fields */ }Expand description
Pending type-safe RPC call, holding the target object, RPC name and arguments until the call is dispatched.
You generally do not construct this directly. It is returned by the per-RPC methods on the collection from
WithUserRpcs::rpcs() (or Gd::rpcs()). Finalize the call with
call() to broadcast, or call_id() to target a specific peer.
Implementations§
§impl<'c, C> RpcBuilder<'c, C>where
C: GodotClass,
impl<'c, C> RpcBuilder<'c, C>where
C: GodotClass,
pub fn new( object: UserRpcObject<'c, C>, rpc_name: &'c str, arguments: Vec<Variant>, ) -> RpcBuilder<'c, C>
Auto Trait Implementations§
impl<'c, C> !Send for RpcBuilder<'c, C>
impl<'c, C> !Sync for RpcBuilder<'c, C>
impl<'c, C> !UnwindSafe for RpcBuilder<'c, C>
impl<'c, C> Freeze for RpcBuilder<'c, C>
impl<'c, C> RefUnwindSafe for RpcBuilder<'c, C>where
C: RefUnwindSafe,
impl<'c, C> Unpin for RpcBuilder<'c, C>
impl<'c, C> UnsafeUnpin for RpcBuilder<'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