pub struct RequestClient { /* private fields */ }
Expand description
Struct that represents any connection to the in game or rest APIs, this client has to be constructed and then passed to the clients
§Example
use irelia::{RequestClient, rest::LCUClient};
fn main() {
let client = RequestClient::new();
let lcu_client = LCUClient::new();
}
Implementations§
Source§impl RequestClient
impl RequestClient
Sourcepub fn new() -> RequestClient
pub fn new() -> RequestClient
Creates a client to be passed to the LCU and in game structs
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestClient
impl !RefUnwindSafe for RequestClient
impl Send for RequestClient
impl Sync for RequestClient
impl Unpin for RequestClient
impl !UnwindSafe for RequestClient
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