[][src]Struct basws_server::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 async fn incoming_connection<'_>(&'_ self, ws: WebSocket)[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>
)
[src]

Trait Implementations

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

Auto Trait Implementations

impl<L> !RefUnwindSafe for Server<L>

impl<L: ?Sized> Send for Server<L> where
    <L as ServerLogic>::Account: Identifiable + Send + Sync,
    <L as ServerLogic>::AccountId: Send + Sync,
    <L as ServerLogic>::Response: Send

impl<L: ?Sized> Sync for Server<L> where
    <L as ServerLogic>::Account: Identifiable + Send + Sync,
    <L as ServerLogic>::AccountId: Send + Sync,
    <L as ServerLogic>::Response: Send

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

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