pub struct Server { /* private fields */ }Expand description
A Steam content (Steampipe) server.
Implementations§
Source§impl Server
impl Server
Sourcepub fn from_socket_addr(end_point: SocketAddr) -> Self
pub fn from_socket_addr(end_point: SocketAddr) -> Self
Creates a server from a socket address. Port 443 means HTTPS, anything else HTTP.
Sourcepub fn from_dns_end_point(host: &str, port: u16) -> Self
pub fn from_dns_end_point(host: &str, port: u16) -> Self
Creates a server from a host name and port. Port 443 means HTTPS, anything else HTTP.
Sourcepub fn protocol(&self) -> ConnectionProtocol
pub fn protocol(&self) -> ConnectionProtocol
The connection protocol the server supports.
Sourcepub fn server_type(&self) -> Option<&str>
pub fn server_type(&self) -> Option<&str>
The type of the server.
Sourcepub fn weighted_load(&self) -> f32
pub fn weighted_load(&self) -> f32
The weighted load.
Sourcepub fn num_entries(&self) -> i32
pub fn num_entries(&self) -> i32
The number of entries this server is worth.
Sourcepub fn steam_china_only(&self) -> bool
pub fn steam_china_only(&self) -> bool
Whether this server is for Steam China only.
Sourcepub fn use_as_proxy(&self) -> bool
pub fn use_as_proxy(&self) -> bool
Whether this server is a download proxy.
Sourcepub fn proxy_request_path_template(&self) -> Option<&str>
pub fn proxy_request_path_template(&self) -> Option<&str>
The template applied to request paths.
Sourcepub fn allowed_app_ids(&self) -> &[u32]
pub fn allowed_app_ids(&self) -> &[u32]
The app ids this server can be used for.
Sourcepub fn bypass_proxies_of_type(&self) -> &[String]
pub fn bypass_proxies_of_type(&self) -> &[String]
The list of bypass proxies.
Trait Implementations§
Source§impl From<SocketAddr> for Server
impl From<SocketAddr> for Server
Source§fn from(end_point: SocketAddr) -> Self
fn from(end_point: SocketAddr) -> Self
Same as Server::from_socket_addr.
Auto Trait Implementations§
impl Freeze for Server
impl RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl UnwindSafe for Server
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