Struct nimble_rust::logic::ClientLogic
source · pub struct ClientLogic<StepT>{ /* private fields */ }
Implementations§
source§impl<StepT> ClientLogic<StepT>
impl<StepT> ClientLogic<StepT>
pub fn new() -> ClientLogic<StepT>
pub fn set_joining_player(&mut self, join_game_request: JoinGameRequest)
pub fn debug_set_tick_id(&mut self, tick_id: u32)
pub fn send(&mut self) -> Vec<ClientToHostCommands<StepT>>
pub fn add_predicted_step(&mut self, step: PredictedStep<StepT>)
pub fn receive_cmd( &mut self, command: &HostToClientCommands<StepT>, ) -> Result<(), ClientErrorKind>
pub fn receive( &mut self, commands: &[HostToClientCommands<StepT>], ) -> Result<(), ClientError>
Trait Implementations§
source§impl<StepT> Debug for ClientLogic<StepT>
impl<StepT> Debug for ClientLogic<StepT>
source§impl<StepT> Default for ClientLogic<StepT>
impl<StepT> Default for ClientLogic<StepT>
source§fn default() -> ClientLogic<StepT>
fn default() -> ClientLogic<StepT>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<StepT> Freeze for ClientLogic<StepT>
impl<StepT> RefUnwindSafe for ClientLogic<StepT>where
StepT: RefUnwindSafe,
impl<StepT> Send for ClientLogic<StepT>where
StepT: Send,
impl<StepT> Sync for ClientLogic<StepT>where
StepT: Sync,
impl<StepT> Unpin for ClientLogic<StepT>where
StepT: Unpin,
impl<StepT> UnwindSafe for ClientLogic<StepT>where
StepT: UnwindSafe,
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