[][src]Struct rask_server::server::Socket

pub struct Socket {
    ws: Sender,
    group: Sender<GroupMessage>,
    groups: Arc<Mutex<HashMap<u32, Group>>>,
    ip: String,
    id: u32,
}

Fields

ws: Sendergroup: Sender<GroupMessage>groups: Arc<Mutex<HashMap<u32, Group>>>ip: Stringid: u32

Implementations

impl Socket[src]

fn handle_token(&mut self, response: TokenResponse) -> Result<(), ServerError>[src]

Trait Implementations

impl Handler for Socket[src]

Auto Trait Implementations

impl !RefUnwindSafe for Socket

impl Send for Socket

impl !Sync for Socket

impl Unpin for Socket

impl !UnwindSafe for Socket

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<S, T> Collide<[T]> for S where
    T: Collide<S>, 
[src]

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<F> Handler for F where
    F: Fn(Message) -> Result<(), Error>, 

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Resource for T where
    T: Any + Send + Sync

impl<T> Same<T> for T

type Output = T

Should always be Self

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<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

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