Struct evoke_core::client_server::ClientSession [−][src]
pub struct ClientSession<C> { /* fields omitted */ }Implementations
Create new client session via specified channel.
pub async fn add_player<'a, P, J, K>(
&mut self,
player: K,
scope: &'a Scope<'_>
) -> Result<Unpacked<'a, J>, ClientError<C::Error>> where
P: Schema,
J: Schema,
K: Pack<P>,
pub async fn add_player<'a, P, J, K>(
&mut self,
player: K,
scope: &'a Scope<'_>
) -> Result<Unpacked<'a, J>, ClientError<C::Error>> where
P: Schema,
J: Schema,
K: Pack<P>,
Adds new player to the session.
pub async fn send_inputs<T, K, I>(
&mut self,
inputs: I,
scope: &Scope<'_>
) -> Result<(), C::Error> where
T: Schema,
K: Pack<T>,
I: IntoIterator,
I::IntoIter: ExactSizeIterator<Item = (PlayerId, K)>,
pub async fn send_inputs<T, K, I>(
&mut self,
inputs: I,
scope: &Scope<'_>
) -> Result<(), C::Error> where
T: Schema,
K: Pack<T>,
I: IntoIterator,
I::IntoIter: ExactSizeIterator<Item = (PlayerId, K)>,
Sends input from players to the server.
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more