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§
impl Freeze for WebClient
impl !RefUnwindSafe for WebClient
impl Unpin for WebClient
impl !UnwindSafe for WebClient
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