pub struct LeagueClientConnector {}
Expand description
Make sure the League of Legends Client is opened before running any of the methods.
Implementations§
Source§impl LeagueClientConnector
impl LeagueClientConnector
Sourcepub fn parse_lockfile() -> Result<RiotLockFile>
pub fn parse_lockfile() -> Result<RiotLockFile>
Parses League’s client file which contains information needed to connect to Game Client API Which uses RESTful to interact with League’s Client
§Example
use league_client_connector::LeagueClientConnector;
let lockfile = LeagueClientConnector::parse_lockfile().unwrap();
println!("{:?}", lockfile);
assert!(lockfile.port > 0);
Auto Trait Implementations§
impl Freeze for LeagueClientConnector
impl RefUnwindSafe for LeagueClientConnector
impl Send for LeagueClientConnector
impl Sync for LeagueClientConnector
impl Unpin for LeagueClientConnector
impl UnwindSafe for LeagueClientConnector
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