pub struct ContentServerDirectoryService;Expand description
Loads content servers from the IContentServerDirectoryService Web API.
Implementations§
Source§impl ContentServerDirectoryService
impl ContentServerDirectoryService
Sourcepub async fn load(
configuration: &SteamConfiguration,
) -> Result<Vec<Server>, SteamError>
pub async fn load( configuration: &SteamConfiguration, ) -> Result<Vec<Server>, SteamError>
Loads a list of content servers.
Sourcepub async fn load_with_cancellation(
configuration: &SteamConfiguration,
cancellation: CancellationToken,
) -> Result<Vec<Server>, SteamError>
pub async fn load_with_cancellation( configuration: &SteamConfiguration, cancellation: CancellationToken, ) -> Result<Vec<Server>, SteamError>
Loads a list of content servers, cancellable.
Sourcepub async fn load_with_cell_id(
configuration: &SteamConfiguration,
cell_id: u32,
cancellation: CancellationToken,
) -> Result<Vec<Server>, SteamError>
pub async fn load_with_cell_id( configuration: &SteamConfiguration, cell_id: u32, cancellation: CancellationToken, ) -> Result<Vec<Server>, SteamError>
Loads a list of content servers; cell_id is the preferred cell id.
Sourcepub async fn load_with_cell_id_and_max_num_servers(
configuration: &SteamConfiguration,
cell_id: u32,
max_num_servers: u32,
cancellation: CancellationToken,
) -> Result<Vec<Server>, SteamError>
pub async fn load_with_cell_id_and_max_num_servers( configuration: &SteamConfiguration, cell_id: u32, max_num_servers: u32, cancellation: CancellationToken, ) -> Result<Vec<Server>, SteamError>
Loads a list of content servers. cell_id is the preferred cell id and
max_num_servers caps the result.
Sourcepub fn convert_server_list(
response: &CContentServerDirectoryGetServersForSteamPipeResponse,
) -> Vec<Server>
pub fn convert_server_list( response: &CContentServerDirectoryGetServersForSteamPipeResponse, ) -> Vec<Server>
Converts the protobuf response to CDN server records.
Auto Trait Implementations§
impl Freeze for ContentServerDirectoryService
impl RefUnwindSafe for ContentServerDirectoryService
impl Send for ContentServerDirectoryService
impl Sync for ContentServerDirectoryService
impl Unpin for ContentServerDirectoryService
impl UnsafeUnpin for ContentServerDirectoryService
impl UnwindSafe for ContentServerDirectoryService
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