pub struct WebClient { /* private fields */ }
Implementations§
source§impl WebClient
impl WebClient
pub fn history_size(&self) -> usize
pub fn set_history_size(&mut self, value: usize)
Trait Implementations§
source§impl Client for WebClient
impl Client for WebClient
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)
impl Send for WebClient
impl Sync for WebClient
Auto Trait Implementations§
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