Struct battlebit_api::BBApi
source · pub struct BBApi(/* private fields */);Expand description
BattleBit API Struct
Implementations§
source§impl BBApi
impl BBApi
sourcepub fn server_list(&self) -> Result<Vec<ServerData>, Error>
pub fn server_list(&self) -> Result<Vec<ServerData>, Error>
Fetches the server list and puts it into a Vec<ServerData>
sourcepub fn leaderboard(&self) -> Result<Leaderboard, Error>
pub fn leaderboard(&self) -> Result<Leaderboard, Error>
Fetches the leaderboard.
Trait Implementations§
source§impl PartialEq<BBApi> for BBApi
impl PartialEq<BBApi> for BBApi
impl StructuralPartialEq for BBApi
Auto Trait Implementations§
impl RefUnwindSafe for BBApi
impl Send for BBApi
impl Sync for BBApi
impl Unpin for BBApi
impl UnwindSafe for BBApi
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