pub struct MemoryServerListProvider { /* private fields */ }Expand description
A server list provider that uses an in-memory list.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryServerListProvider
impl Debug for MemoryServerListProvider
Source§impl Default for MemoryServerListProvider
impl Default for MemoryServerListProvider
Source§impl IServerListProvider for MemoryServerListProvider
impl IServerListProvider for MemoryServerListProvider
Source§fn last_server_list_refresh<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemTime, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn last_server_list_refresh<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<SystemTime, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
When the list was last updated.
Source§fn fetch_server_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_server_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Returns the stored server list.
Source§fn update_server_list<'life0, 'async_trait>(
&'life0 self,
endpoints: Vec<ServerRecord>,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_server_list<'life0, 'async_trait>(
&'life0 self,
endpoints: Vec<ServerRecord>,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stores the server list.
Source§fn load_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn load_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Alias of
IServerListProvider::fetch_server_list.Source§fn save_servers<'life0, 'async_trait>(
&'life0 self,
endpoints: Vec<ServerRecord>,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save_servers<'life0, 'async_trait>(
&'life0 self,
endpoints: Vec<ServerRecord>,
) -> Pin<Box<dyn Future<Output = Result<(), SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Alias of
IServerListProvider::update_server_list.Source§fn resolve_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn resolve_servers<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<ServerRecord>, SteamError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Alias of
IServerListProvider::fetch_server_list.Auto Trait Implementations§
impl !Freeze for MemoryServerListProvider
impl !RefUnwindSafe for MemoryServerListProvider
impl !UnwindSafe for MemoryServerListProvider
impl Send for MemoryServerListProvider
impl Sync for MemoryServerListProvider
impl Unpin for MemoryServerListProvider
impl UnsafeUnpin for MemoryServerListProvider
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