Struct oxygengine_network::resource::NetworkHost
source · pub struct NetworkHost<S>where
S: Server,{ /* private fields */ }
Implementations§
source§impl<S> NetworkHost<S>where
S: Server,
impl<S> NetworkHost<S>where S: Server,
pub fn open_server(&mut self, url: &str) -> Option<ServerId>
pub fn close_server(&mut self, id: ServerId) -> bool
pub fn server(&self, id: ServerId) -> Option<&S>
pub fn server_mut(&mut self, id: ServerId) -> Option<&mut S>
pub fn has_server(&self, id: ServerId) -> bool
pub fn process(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<S> RefUnwindSafe for NetworkHost<S>where S: RefUnwindSafe,
impl<S> Send for NetworkHost<S>
impl<S> Sync for NetworkHost<S>
impl<S> Unpin for NetworkHost<S>where S: Unpin,
impl<S> UnwindSafe for NetworkHost<S>where S: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more