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> Freeze for NetworkHost<S>
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