Struct oxygengine_network::resource::Network
source · pub struct Network<C>where
C: Client,{ /* private fields */ }
Implementations§
source§impl<C> Network<C>where
C: Client,
impl<C> Network<C>where C: Client,
pub fn open_client(&mut self, url: &str) -> Option<ClientId>
pub fn close_client(&mut self, id: ClientId) -> bool
pub fn client(&self, id: ClientId) -> Option<&C>
pub fn client_mut(&mut self, id: ClientId) -> Option<&mut C>
pub fn has_client(&self, id: ClientId) -> bool
pub fn process(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<C> RefUnwindSafe for Network<C>where C: RefUnwindSafe,
impl<C> Send for Network<C>
impl<C> Sync for Network<C>
impl<C> Unpin for Network<C>where C: Unpin,
impl<C> UnwindSafe for Network<C>where C: 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