pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn connect(config: ClientConfig) -> Result<Self, ClientError>
pub fn open(&mut self, now: ClientTimestamp) -> Result<OpenOutcome, ClientError>
pub fn close( &mut self, now: ClientTimestamp, ) -> Result<Vec<ClientEvent>, ClientError>
pub fn next_send_deadline(&self) -> Option<Instant>
pub fn probe_timeout(&self) -> Duration
pub fn send_probe(&mut self) -> Result<Vec<ClientEvent>, ClientError>
pub fn recv_once(&mut self) -> Result<Vec<ClientEvent>, ClientError>
pub fn recv_available( &mut self, budget: RecvBudget, ) -> Result<Vec<ClientEvent>, ClientError>
pub fn poll_timeouts( &mut self, now: ClientTimestamp, ) -> Result<Vec<ClientEvent>, ClientError>
pub fn is_run_complete(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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