[][src]Struct basws_client::Client

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) -> f64[src]

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

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

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

Trait Implementations

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

Auto Trait Implementations

impl<L> !RefUnwindSafe for Client<L>

impl<L: ?Sized> Send for Client<L> where
    <L as ClientLogic>::Request: Send

impl<L: ?Sized> Sync for Client<L> where
    <L as ClientLogic>::Request: Send

impl<L: ?Sized> Unpin for Client<L>

impl<L> !UnwindSafe for Client<L>

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>,