Struct steam_vent::Connection
source · pub struct Connection { /* private fields */ }Implementations§
source§impl Connection
impl Connection
pub async fn anonymous(server_list: ServerList) -> Result<Self, ConnectionError>
pub async fn login<H: AuthConfirmationHandler, G: GuardDataStore>( server_list: ServerList, account: &str, password: &str, guard_data_store: G, confirmation_handler: H ) -> Result<Self, ConnectionError>
pub fn steam_id(&self) -> SteamID
pub async fn send<Msg: NetMessage>( &self, header: NetMessageHeader, msg: Msg ) -> Result<(), NetworkError>
pub fn set_timeout(&mut self, timeout: Duration)
pub async fn service_method<Msg: ServiceMethodRequest>( &self, msg: Msg ) -> Result<Msg::Response, NetworkError>
pub async fn next(&mut self) -> Result<RawNetMessage, NetworkError>
pub fn on<T: ServiceMethodRequest>( &self ) -> impl Stream<Item = Result<T, NetworkError>>
pub fn one<T: NetMessage>( &self ) -> impl Future<Output = Result<(NetMessageHeader, T), NetworkError>>
Auto Trait Implementations§
impl !Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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