pub enum Transport {
WebApi(WebApiTransport),
WebSocketCM(WebSocketCMTransport),
}Expand description
Transport type for communicating with Steam.
Variants§
WebApi(WebApiTransport)
Web API transport (HTTPS).
WebSocketCM(WebSocketCMTransport)
WebSocket CM transport.
Implementations§
Source§impl Transport
impl Transport
Sourcepub async fn send_request(
&self,
request: ApiRequest,
) -> Result<ApiResponse, SessionError>
pub async fn send_request( &self, request: ApiRequest, ) -> Result<ApiResponse, SessionError>
Send a request and receive a response.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transport
impl !RefUnwindSafe for Transport
impl Send for Transport
impl Sync for Transport
impl Unpin for Transport
impl UnsafeUnpin for Transport
impl !UnwindSafe for Transport
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