pub struct Fake { /* private fields */ }Implementations§
Source§impl Fake
impl Fake
pub fn new() -> Self
pub fn with_quota(total: u64) -> Self
pub fn on(hub: &Hub, user: User) -> Self
pub fn hub(&self) -> &Hub
pub fn invite_dialogs(&self) -> &[Lobby]
pub fn set_account_cloud(&mut self, enabled: bool)
pub fn set_app_cloud(&mut self, enabled: bool)
pub fn push_overlay(&mut self, open: bool)
pub fn presence(&self, key: &str) -> Option<&str>
pub fn stores(&self) -> u32
Trait Implementations§
Source§impl SteamApi for Fake
impl SteamApi for Fake
fn run_callbacks(&mut self) -> Vec<Event>
fn shutdown(&mut self)
fn unlock(&mut self, name: &str) -> Result<(), Error>
fn achieved(&self, name: &str) -> Result<bool, Error>
fn store(&mut self) -> Result<(), Error>
fn clear(&mut self, name: &str) -> Result<(), Error>
fn stat_i32(&self, name: &str) -> Result<i32, Error>
fn set_stat_i32(&mut self, name: &str, value: i32) -> Result<(), Error>
fn stat_f32(&self, name: &str) -> Result<f32, Error>
fn set_stat_f32(&mut self, name: &str, value: f32) -> Result<(), Error>
fn write(&mut self, name: &str, bytes: &[u8]) -> Result<(), Error>
fn read(&self, name: &str) -> Result<Vec<u8>, Error>
fn exists(&self, name: &str) -> Result<bool, Error>
fn delete(&mut self, name: &str) -> Result<(), Error>
fn quota(&self) -> Result<Quota, Error>
fn set_presence(&mut self, key: &str, value: &str) -> Result<(), Error>
fn clear_presence(&mut self, key: &str) -> Result<(), Error>
fn me(&self) -> Result<User, Error>
fn server_time(&self) -> Result<Option<u64>, Error>
fn find_board(&mut self, name: &str) -> Result<Call, Error>
fn find_or_create_board( &mut self, name: &str, sort: Sort, display: Display, ) -> Result<Call, Error>
fn upload_score( &mut self, board: Board, score: i32, details: &[i32], upload: Upload, ) -> Result<Call, Error>
fn download_scores( &mut self, board: Board, range: Range, details: usize, ) -> Result<Call, Error>
fn attach_ugc(&mut self, board: Board, ugc: Ugc) -> Result<(), Error>
fn download_ugc(&mut self, ugc: Ugc) -> Result<Call, Error>
fn create_lobby( &mut self, kind: LobbyKind, max_members: u32, ) -> Result<Call, Error>
fn find_lobbies(&mut self, filter: &LobbyFilter) -> Result<Call, Error>
fn join_lobby(&mut self, lobby: Lobby) -> Result<Call, Error>
fn leave_lobby(&mut self, lobby: Lobby) -> Result<(), Error>
fn lobby_members(&self, lobby: Lobby) -> Result<Vec<User>, Error>
fn lobby_owner(&self, lobby: Lobby) -> Result<User, Error>
fn set_lobby_data( &mut self, lobby: Lobby, key: &str, value: &str, ) -> Result<(), Error>
fn lobby_data(&self, lobby: Lobby, key: &str) -> Result<Option<String>, Error>
fn invite_dialog(&mut self, lobby: Lobby) -> Result<(), Error>
fn launched(&mut self, args: &[String]) -> Option<Lobby>
fn send_message( &mut self, peer: User, channel: u32, bytes: &[u8], delivery: Delivery, ) -> Result<(), Error>
fn receive_messages( &mut self, channel: u32, max: usize, ) -> Result<Vec<Message>, Error>
fn accept_session(&mut self, peer: User) -> Result<(), Error>
fn sync(&mut self, achieved: &[&str]) -> Result<(), Error>
fn upload_run( &mut self, board: Board, score: i32, details: &[i32], upload: Upload, run: Ugc, ) -> Result<Call, Error>
Auto Trait Implementations§
impl Freeze for Fake
impl RefUnwindSafe for Fake
impl Send for Fake
impl Sync for Fake
impl Unpin for Fake
impl UnsafeUnpin for Fake
impl UnwindSafe for Fake
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