pub enum AuthEvent {
LoggedOn {
steam_id: SteamID,
},
LoggedOff {
result: EResult,
},
RefreshToken {
token: String,
account_name: String,
},
WebSession {
session_id: String,
cookies: Vec<String>,
},
GameConnectTokens {
tokens: Vec<Vec<u8>>,
},
}Expand description
Authentication events.
Variants§
LoggedOn
Client logged on successfully.
LoggedOff
Client was logged off.
RefreshToken
Received a new refresh token (from password authentication). This can be saved and used for future logins without password.
WebSession
Web session established.
Emitted after successful login when web cookies are available. These cookies can be used to authenticate with Steam web APIs (e.g., steamcommunity.com, store.steampowered.com).
This event is emitted when:
- Login is successful and we have a refresh token that can generate web cookies
- The
get_web_session()method is called explicitly after login
Fields
Cookies in “name=value” format, suitable for HTTP Cookie headers.
GameConnectTokens
Received game connect tokens.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthEvent
impl RefUnwindSafe for AuthEvent
impl Send for AuthEvent
impl Sync for AuthEvent
impl Unpin for AuthEvent
impl UnsafeUnpin for AuthEvent
impl UnwindSafe for AuthEvent
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more