Struct nimble_rust::client::ClientStream
source · pub struct ClientStream<GameT, StepT>where
GameT: SeerCallback<AuthoritativeStep<StepT>> + AssentCallback<AuthoritativeStep<StepT>> + RectifyCallback,
StepT: Clone + Deserialize + Serialize + Debug,{ /* private fields */ }
Implementations§
source§impl<GameT, StepT> ClientStream<GameT, StepT>where
GameT: SeerCallback<AuthoritativeStep<StepT>> + AssentCallback<AuthoritativeStep<StepT>> + RectifyCallback,
StepT: Clone + Deserialize + Serialize + Debug,
impl<GameT, StepT> ClientStream<GameT, StepT>where
GameT: SeerCallback<AuthoritativeStep<StepT>> + AssentCallback<AuthoritativeStep<StepT>> + RectifyCallback,
StepT: Clone + Deserialize + Serialize + Debug,
pub fn new(application_version: &Version) -> ClientStream<GameT, StepT>
pub fn receive(&mut self, payload: &[u8]) -> Result<(), Error>
pub fn send(&mut self) -> Result<Vec<Vec<u8>>, Error>
pub fn debug_phase(&self) -> &ClientPhase<GameT, StepT>
pub fn debug_connect_info(&self) -> Option<ConnectedInfo>
Auto Trait Implementations§
impl<GameT, StepT> Freeze for ClientStream<GameT, StepT>
impl<GameT, StepT> RefUnwindSafe for ClientStream<GameT, StepT>where
GameT: RefUnwindSafe,
StepT: RefUnwindSafe,
impl<GameT, StepT> Send for ClientStream<GameT, StepT>
impl<GameT, StepT> Sync for ClientStream<GameT, StepT>
impl<GameT, StepT> Unpin for ClientStream<GameT, StepT>
impl<GameT, StepT> UnwindSafe for ClientStream<GameT, StepT>where
GameT: UnwindSafe,
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