[][src]Struct league_client_connector::LeagueClientConnector

pub struct 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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.