Struct basws_client::prelude::Client[][src]

pub struct Client<L: ?Sized> where
    L: ClientLogic
{ /* fields omitted */ }

Implementations

impl<L> Client<L> where
    L: ClientLogic + 'static, 
[src]

pub fn new(logic: L) -> Self[src]

pub fn spawn(self) -> JoinHandle<Result<()>>[src]

pub async fn login_state(&self) -> LoginState[src]

pub async fn average_roundtrip(&self) -> Option<f64>[src]

pub async fn average_server_timestamp_delta(&self) -> Option<f64>[src]

pub async fn wait_for_response_to(
    &self,
    request_id: u64
) -> Result<Vec<L::Response>, RecvError>
[src]

pub async fn run(self) -> Result<()>[src]

pub async fn request(&self, request: L::Request) -> Result<PendingResponse<L>>[src]

Trait Implementations

impl<L> Clone for Client<L> where
    L: ClientLogic
[src]

impl<L> Deref for Client<L> where
    L: ClientLogic
[src]

type Target = L

The resulting type after dereferencing.

Auto Trait Implementations

impl<L> !RefUnwindSafe for Client<L>[src]

impl<L: ?Sized> Send for Client<L>[src]

impl<L: ?Sized> Sync for Client<L>[src]

impl<L: ?Sized> Unpin for Client<L>[src]

impl<L> !UnwindSafe for Client<L>[src]

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> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,