Skip to main content

Steam

Struct Steam 

Source
pub struct Steam { /* private fields */ }

Implementations§

Source§

impl Steam

Source

pub fn init(app_id: u32) -> Result<Self, Error>

Source

pub fn app_id(&self) -> u32

Trait Implementations§

Source§

impl SteamApi for Steam

Source§

fn run_callbacks(&mut self) -> Vec<Event>

Source§

fn shutdown(&mut self)

Source§

fn unlock(&mut self, name: &str) -> Result<(), Error>

Source§

fn achieved(&self, name: &str) -> Result<bool, Error>

Source§

fn store(&mut self) -> Result<(), Error>

Source§

fn clear(&mut self, name: &str) -> Result<(), Error>

Source§

fn stat_i32(&self, name: &str) -> Result<i32, Error>

Source§

fn set_stat_i32(&mut self, name: &str, value: i32) -> Result<(), Error>

Source§

fn stat_f32(&self, name: &str) -> Result<f32, Error>

Source§

fn set_stat_f32(&mut self, name: &str, value: f32) -> Result<(), Error>

Source§

fn write(&mut self, name: &str, bytes: &[u8]) -> Result<(), Error>

Source§

fn read(&self, name: &str) -> Result<Vec<u8>, Error>

Source§

fn exists(&self, name: &str) -> Result<bool, Error>

Source§

fn delete(&mut self, name: &str) -> Result<(), Error>

Source§

fn quota(&self) -> Result<Quota, Error>

Source§

fn set_presence(&mut self, key: &str, value: &str) -> Result<(), Error>

Source§

fn clear_presence(&mut self, key: &str) -> Result<(), Error>

Source§

fn me(&self) -> Result<User, Error>

Source§

fn server_time(&self) -> Result<Option<u64>, Error>

Source§

fn find_board(&mut self, name: &str) -> Result<Call, Error>

Source§

fn find_or_create_board( &mut self, name: &str, sort: Sort, display: Display, ) -> Result<Call, Error>

Source§

fn upload_score( &mut self, board: Board, score: i32, details: &[i32], upload: Upload, ) -> Result<Call, Error>

Source§

fn download_scores( &mut self, board: Board, range: Range, details: usize, ) -> Result<Call, Error>

Source§

fn share_file(&mut self, name: &str) -> Result<Call, Error>

Source§

fn attach_ugc(&mut self, board: Board, ugc: Ugc) -> Result<(), Error>

Source§

fn download_ugc(&mut self, ugc: Ugc) -> Result<Call, Error>

Source§

fn create_lobby( &mut self, kind: LobbyKind, max_members: u32, ) -> Result<Call, Error>

Source§

fn find_lobbies(&mut self, filter: &LobbyFilter) -> Result<Call, Error>

Source§

fn join_lobby(&mut self, lobby: Lobby) -> Result<Call, Error>

Source§

fn leave_lobby(&mut self, lobby: Lobby) -> Result<(), Error>

Source§

fn lobby_members(&self, lobby: Lobby) -> Result<Vec<User>, Error>

Source§

fn lobby_owner(&self, lobby: Lobby) -> Result<User, Error>

Source§

fn set_lobby_data( &mut self, lobby: Lobby, key: &str, value: &str, ) -> Result<(), Error>

Source§

fn lobby_data(&self, lobby: Lobby, key: &str) -> Result<Option<String>, Error>

Source§

fn invite_dialog(&mut self, lobby: Lobby) -> Result<(), Error>

Source§

fn launched(&mut self, args: &[String]) -> Option<Lobby>

Source§

fn send_message( &mut self, peer: User, channel: u32, bytes: &[u8], delivery: Delivery, ) -> Result<(), Error>

Source§

fn receive_messages( &mut self, channel: u32, max: usize, ) -> Result<Vec<Message>, Error>

Source§

fn accept_session(&mut self, peer: User) -> Result<(), Error>

Source§

fn sync(&mut self, achieved: &[&str]) -> Result<(), Error>

Source§

fn upload_run( &mut self, board: Board, score: i32, details: &[i32], upload: Upload, run: Ugc, ) -> Result<Call, Error>

Auto Trait Implementations§

§

impl Freeze for Steam

§

impl RefUnwindSafe for Steam

§

impl Send for Steam

§

impl Sync for Steam

§

impl Unpin for Steam

§

impl UnsafeUnpin for Steam

§

impl UnwindSafe for Steam

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.