[][src]Struct rask_server::group::Group

pub struct Group {
    pub clients: Vec<Sender>,
    pub sender: Sender<Message>,
    id: u32,
    group_type: String,
    name: String,
    capacity: u32,
    game_thread: JoinHandle<()>,
}

capacity is never allowed to be above usize::MAX

Fields

clients: Vec<Sender>sender: Sender<Message>id: u32group_type: Stringname: Stringcapacity: u32game_thread: JoinHandle<()>

Implementations

impl Group[src]

pub fn id(&self) -> u32[src]

pub fn group_type(&self) -> &str[src]

pub fn name(&self) -> &str[src]

pub fn park(self) -> Result<(), ServerError>[src]

pub fn unpark(&mut self)[src]

pub fn add_client(
    &mut self,
    client: Sender
) -> Result<Sender<Message>, ServerError>
[src]

pub fn remove_client(&mut self, client: &Sender) -> Result<(), ServerError>[src]

pub fn new(response: TokenResponse) -> Result<Self, ServerError>[src]

Trait Implementations

impl Debug for Group[src]

impl Drop for Group[src]

Auto Trait Implementations

impl !RefUnwindSafe for Group

impl Send for Group

impl !Sync for Group

impl Unpin for Group

impl !UnwindSafe for Group

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