pub struct ServerSession<C, L> { /* private fields */ }Implementations§
Source§impl<C, L> ServerSession<C, L>
impl<C, L> ServerSession<C, L>
pub fn current_step(&self) -> u64
Sourcepub async fn advance<'a, U, F, K>(&mut self, updates: F, scope: &Scope<'_>)
pub async fn advance<'a, U, F, K>(&mut self, updates: F, scope: &Scope<'_>)
Advances server-side simulation by one step. Broadcasts updates to all clients.
pub fn events<'a, P, I>( &'a mut self, scope: &'a Scope<'_>, ) -> Result<impl Iterator<Item = (ClientId, Event<'a, C, P, I>)> + 'a, L::Error>
Auto Trait Implementations§
impl<C, L> Freeze for ServerSession<C, L>where
L: Freeze,
impl<C, L> RefUnwindSafe for ServerSession<C, L>where
L: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, L> Send for ServerSession<C, L>
impl<C, L> Sync for ServerSession<C, L>
impl<C, L> Unpin for ServerSession<C, L>
impl<C, L> UnwindSafe for ServerSession<C, L>where
L: UnwindSafe,
C: 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