pub struct NativeServer { /* private fields */ }
Trait Implementations§
Source§impl Drop for NativeServer
impl Drop for NativeServer
Source§impl Server for NativeServer
impl Server for NativeServer
fn open(url: &str) -> Option<Self>
fn close(self) -> Self
fn id(&self) -> ServerId
fn state(&self) -> ServerState
fn clients(&self) -> &[ClientId] ⓘ
fn disconnect(&mut self, id: ClientId)
fn disconnect_all(&mut self)
fn send( &mut self, id: ClientId, msg_id: MessageId, data: &[u8], ) -> Option<Range<usize>>
fn send_all(&mut self, id: MessageId, data: &[u8])
fn read(&mut self) -> Option<(ClientId, MessageId, Vec<u8>)>
fn read_all(&mut self) -> Vec<(ClientId, MessageId, Vec<u8>)>
fn process(&mut self)
Auto Trait Implementations§
impl Freeze for NativeServer
impl !RefUnwindSafe for NativeServer
impl Send for NativeServer
impl Sync for NativeServer
impl Unpin for NativeServer
impl !UnwindSafe for NativeServer
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