pub struct ClientSession<C> { /* private fields */ }Implementations§
Source§impl<C> ClientSession<C>where
C: Channel,
impl<C> ClientSession<C>where
C: Channel,
Sourcepub async fn new(
channel: C,
scope: &Scope<'_>,
) -> Result<Self, ClientError<C::Error>>
pub async fn new( channel: C, scope: &Scope<'_>, ) -> Result<Self, ClientError<C::Error>>
Create new client session via specified channel.
pub fn current_step(&self) -> u64
Sourcepub async fn add_player<'a, P, J, K>(
&mut self,
player: K,
scope: &'a Scope<'a>,
) -> Result<Unpacked<'a, J>, ClientError<C::Error>>
pub async fn add_player<'a, P, J, K>( &mut self, player: K, scope: &'a Scope<'a>, ) -> Result<Unpacked<'a, J>, ClientError<C::Error>>
Adds new player to the session.
Auto Trait Implementations§
impl<C> Freeze for ClientSession<C>where
C: Freeze,
impl<C> RefUnwindSafe for ClientSession<C>where
C: RefUnwindSafe,
impl<C> Send for ClientSession<C>where
C: Send,
impl<C> Sync for ClientSession<C>where
C: Sync,
impl<C> Unpin for ClientSession<C>where
C: Unpin,
impl<C> UnwindSafe for ClientSession<C>where
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