pub struct GameCoordinator { /* private fields */ }Implementations§
Source§impl GameCoordinator
impl GameCoordinator
pub async fn new( connection: &Connection, app_id: u32, ) -> Result<Self, NetworkError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameCoordinator
impl !RefUnwindSafe for GameCoordinator
impl Send for GameCoordinator
impl Sync for GameCoordinator
impl Unpin for GameCoordinator
impl !UnwindSafe for GameCoordinator
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
Source§impl<C> ConnectionTrait for Cwhere
C: ConnectionImpl,
impl<C> ConnectionTrait for Cwhere
C: ConnectionImpl,
fn on_notification<T>(
&self,
) -> impl Stream<Item = Result<T, NetworkError>> + 'staticwhere
T: ServiceMethodRequest,
Source§fn one_with_header<T>(
&self,
) -> impl Future<Output = Result<(NetMessageHeader, T), NetworkError>> + 'staticwhere
T: NetMessage + 'static,
fn one_with_header<T>(
&self,
) -> impl Future<Output = Result<(NetMessageHeader, T), NetworkError>> + 'staticwhere
T: NetMessage + 'static,
Wait for one message of a specific kind, also returning the header
Source§fn one<T>(&self) -> impl Future<Output = Result<T, NetworkError>> + 'staticwhere
T: NetMessage + 'static,
fn one<T>(&self) -> impl Future<Output = Result<T, NetworkError>> + 'staticwhere
T: NetMessage + 'static,
Wait for one message of a specific kind
Source§fn on_with_header<T>(
&self,
) -> impl Stream<Item = Result<(NetMessageHeader, T), NetworkError>> + 'staticwhere
T: NetMessage + 'static,
fn on_with_header<T>(
&self,
) -> impl Stream<Item = Result<(NetMessageHeader, T), NetworkError>> + 'staticwhere
T: NetMessage + 'static,
Listen to messages of a specific kind, also returning the header
Source§fn on<T>(&self) -> impl Stream<Item = Result<T, NetworkError>> + 'staticwhere
T: NetMessage + 'static,
fn on<T>(&self) -> impl Stream<Item = Result<T, NetworkError>> + 'staticwhere
T: NetMessage + 'static,
Listen to messages of a specific kind
Source§async fn service_method<Msg>(
&self,
msg: Msg,
) -> Result<<Msg as ServiceMethodRequest>::Response, NetworkError>where
Msg: ServiceMethodRequest,
async fn service_method<Msg>(
&self,
msg: Msg,
) -> Result<<Msg as ServiceMethodRequest>::Response, NetworkError>where
Msg: ServiceMethodRequest,
Send a rpc-request to steam, waiting for the matching rpc-response
Source§async fn job<Msg, Rsp>(&self, msg: Msg) -> Result<Rsp, NetworkError>where
Msg: NetMessage,
Rsp: NetMessage,
async fn job<Msg, Rsp>(&self, msg: Msg) -> Result<Rsp, NetworkError>where
Msg: NetMessage,
Rsp: NetMessage,
Send a message to steam, waiting for a response with the same job id
Source§fn job_multi<Msg, Rsp>(
&self,
msg: Msg,
) -> impl Stream<Item = Result<Rsp, NetworkError>> + Send
fn job_multi<Msg, Rsp>( &self, msg: Msg, ) -> impl Stream<Item = Result<Rsp, NetworkError>> + Send
Send a message to steam, receiving responses until the response marks that the response is complete
Source§fn send<Msg>(
&self,
msg: Msg,
) -> impl Future<Output = Result<(), NetworkError>> + Sendwhere
Msg: NetMessage,
fn send<Msg>(
&self,
msg: Msg,
) -> impl Future<Output = Result<(), NetworkError>> + Sendwhere
Msg: NetMessage,
Send a message to steam without waiting for a response
Source§fn send_with_kind<Msg, K>(
&self,
msg: Msg,
kind: K,
) -> impl Future<Output = Result<(), NetworkError>> + Sendwhere
Msg: NetMessage,
K: MsgKindEnum,
fn send_with_kind<Msg, K>(
&self,
msg: Msg,
kind: K,
) -> impl Future<Output = Result<(), NetworkError>> + Sendwhere
Msg: NetMessage,
K: MsgKindEnum,
Send a message to steam without waiting for a response, overwriting the kind of the message