[][src]Struct basws_server::ConnectedClient

pub struct ConnectedClient<Response, Account> { /* fields omitted */ }

Implementations

impl<Response, Account> ConnectedClient<Response, Account> where
    Response: Send + Sync + 'static, 
[src]

pub fn new(sender: Sender<WsBatchResponse<Response>>) -> Self[src]

pub fn new_with_installation(
    installation: InstallationConfig,
    sender: Sender<WsBatchResponse<Response>>
) -> Self
[src]

pub async fn send<'_>(
    &'_ self,
    response: WsBatchResponse<Response>
) -> Result<()>
[src]

pub async fn installation<'_>(&'_ self) -> Option<InstallationConfig>[src]

pub async fn set_installation<'_>(&'_ self, installation: InstallationConfig)[src]

pub async fn account<'_>(&'_ self) -> Option<Handle<Account>>[src]

pub async fn set_account<'_>(&'_ self, account: Handle<Account>)[src]

pub async fn nonce<'_>(&'_ self) -> Option<[u8; 32]>[src]

Trait Implementations

impl<Response, Account> Clone for ConnectedClient<Response, Account>[src]

Auto Trait Implementations

impl<Response, Account> !RefUnwindSafe for ConnectedClient<Response, Account>

impl<Response, Account> Send for ConnectedClient<Response, Account> where
    Account: Send,
    Response: Send

impl<Response, Account> Sync for ConnectedClient<Response, Account> where
    Account: Send + Sync,
    Response: Send

impl<Response, Account> Unpin for ConnectedClient<Response, Account>

impl<Response, Account> !UnwindSafe for ConnectedClient<Response, Account>

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