pub struct NativeClient { /* private fields */ }
Implementations§
source§impl NativeClient
impl NativeClient
pub fn history_size(&self) -> usize
pub fn set_history_size(&mut self, value: usize)
Trait Implementations§
source§impl Client for NativeClient
impl Client for NativeClient
fn open(url: &str) -> Option<Self>
fn close(self) -> Self
fn id(&self) -> ClientId
fn state(&self) -> ClientState
fn send(&mut self, id: MessageId, data: &[u8]) -> Option<Range<usize>>
fn read(&mut self) -> Option<(MessageId, Vec<u8>)>
fn read_all(&mut self) -> Vec<(MessageId, Vec<u8>)>
fn process(&mut self)
source§impl Drop for NativeClient
impl Drop for NativeClient
Auto Trait Implementations§
impl !RefUnwindSafe for NativeClient
impl Send for NativeClient
impl Sync for NativeClient
impl Unpin for NativeClient
impl !UnwindSafe for NativeClient
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