[][src]Struct basws_server::prelude::Server

pub struct Server<L: ?Sized> where
    L: ServerLogic
{ /* fields omitted */ }

Implementations

impl<L> Server<L> where
    L: ServerLogic + 'static, 
[src]

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

pub fn logic(&self) -> &L[src]

pub async fn incoming_connection_for_client(
    &self,
    ws: WebSocket,
    client: L::Client
)
[src]

pub async fn broadcast(&self, response: L::Response)[src]

pub async fn send_to_installation_id(
    &self,
    installation_id: Uuid,
    response: L::Response
)
[src]

pub async fn send_to_account_id(
    &self,
    account_id: L::AccountId,
    response: L::Response
)
[src]

pub async fn associate_installation_with_account(
    &self,
    installation_id: Uuid,
    account: Handle<L::Account>
) -> Result<()>
[src]

pub async fn connected_clients(&self) -> Vec<ConnectedClient<L>>[src]

impl<L> Server<L> where
    L: ServerLogic + 'static,
    L::Client: Default
[src]

pub async fn incoming_connection(&self, ws: WebSocket)[src]

Trait Implementations

impl<L> Clone for Server<L> where
    L: ServerLogic
[src]

impl<L> Deref for Server<L> where
    L: ServerLogic + 'static, 
[src]

type Target = L

The resulting type after dereferencing.

Auto Trait Implementations

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

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

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

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

impl<L> !UnwindSafe for Server<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> Instrument 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>,