pub struct GameStepResponse<StepT: Serialize + Deserialize + Debug + Clone + Display> {
pub response_header: GameStepResponseHeader,
pub authoritative_steps: AuthoritativeStepRanges<StepT>,
}
Fields§
§response_header: GameStepResponseHeader
Implementations§
source§impl<StepT: Deserialize + Serialize + Debug + Clone + Display> GameStepResponse<StepT>
impl<StepT: Deserialize + Serialize + Debug + Clone + Display> GameStepResponse<StepT>
sourcepub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
pub fn to_stream(&self, stream: &mut impl WriteOctetStream) -> Result<()>
§Errors
io::Error
// TODO:
sourcepub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
pub fn from_stream(stream: &mut impl ReadOctetStream) -> Result<Self>
§Errors
io::Error
// TODO:
Trait Implementations§
source§impl<StepT: Debug + Serialize + Deserialize + Debug + Clone + Display> Debug for GameStepResponse<StepT>
impl<StepT: Debug + Serialize + Deserialize + Debug + Clone + Display> Debug for GameStepResponse<StepT>
Auto Trait Implementations§
impl<StepT> Freeze for GameStepResponse<StepT>
impl<StepT> RefUnwindSafe for GameStepResponse<StepT>where
StepT: RefUnwindSafe,
impl<StepT> Send for GameStepResponse<StepT>where
StepT: Send,
impl<StepT> Sync for GameStepResponse<StepT>where
StepT: Sync,
impl<StepT> Unpin for GameStepResponse<StepT>where
StepT: Unpin,
impl<StepT> UnwindSafe for GameStepResponse<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