[][src]Struct oxygengine_network::resource::NetworkHost

pub struct NetworkHost<S> where
    S: Server
{ /* fields omitted */ }

Methods

impl<S> NetworkHost<S> where
    S: Server
[src]

pub fn new() -> Self[src]

pub fn open_server(&mut self, url: &str) -> Option<ServerID>[src]

pub fn close_server(&mut self, id: ServerID) -> bool[src]

pub fn server(&self, id: ServerID) -> Option<&S>[src]

pub fn server_mut(&mut self, id: ServerID) -> Option<&mut S>[src]

pub fn has_server(&self, id: ServerID) -> bool[src]

pub fn send_all(&mut self, id: ServerID, msg_id: MessageID, data: &[u8])[src]

pub fn process(&mut self)[src]

Trait Implementations

impl<S> Default for NetworkHost<S> where
    S: Server
[src]

Auto Trait Implementations

impl<S> Send for NetworkHost<S>

impl<S> Sync for NetworkHost<S>

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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> Borrow for T where
    T: ?Sized
[src]

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

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

impl<T> Any for T where
    T: Any

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

impl<T> TryDefault for T where
    T: Default

fn unwrap_default() -> Self

Calls try_default and panics on an error case.

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

impl<T> Erased for T