[−][src]Struct league_client_connector::LeagueClientConnector
Make sure the League of Legends Client is opened before running any of the methods.
Implementations
impl LeagueClientConnector
[src]
pub fn parse_lockfile() -> Result<RiotLockFile>
[src]
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);
pub fn get_path() -> Result<String>
[src]
Gets League of Legends Installation path. Useful to find the "lockfile" for example. Works for Windows & Mac OSX
Example
use league_client_connector::LeagueClientConnector; let path = LeagueClientConnector::get_path().unwrap(); assert!(path.len() > 0);
Auto Trait Implementations
impl RefUnwindSafe for LeagueClientConnector
impl Send for LeagueClientConnector
impl Sync for LeagueClientConnector
impl Unpin for LeagueClientConnector
impl UnwindSafe for LeagueClientConnector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,