pub struct ServerLookup(/* private fields */);
Implementations§
Source§impl ServerLookup
impl ServerLookup
Sourcepub async fn fetch() -> Result<ServerLookup, SFError>
pub async fn fetch() -> Result<ServerLookup, SFError>
Fetches the current mapping of numeric server ids to their URLs.
§Errors
Returns ConnectionError
, if the server could not be reached, ro
ParsingError
, if the list could not be parsed
Trait Implementations§
Source§impl Clone for ServerLookup
impl Clone for ServerLookup
Source§fn clone(&self) -> ServerLookup
fn clone(&self) -> ServerLookup
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ServerLookup
impl RefUnwindSafe for ServerLookup
impl Send for ServerLookup
impl Sync for ServerLookup
impl Unpin for ServerLookup
impl UnwindSafe for ServerLookup
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