pub trait Client {
// Required methods
fn capacity(&self) -> usize;
fn closed(&self) -> Closed ⓘ;
fn is_closed(&self) -> bool;
fn max_request_size(&self) -> usize;
fn set_max_request_size(&mut self, max_request_size: usize);
fn max_reply_size(&self) -> usize;
fn set_max_reply_size(&mut self, max_reply_size: usize);
}
rtc
only.Expand description
Client of a remotable trait.
Required Methods§
sourcefn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the current capacity of the channel for sending requests to the server.
Zero is returned when the server has been dropped or the connection has been lost.
sourcefn closed(&self) -> Closed ⓘ
fn closed(&self) -> Closed ⓘ
Returns a future that completes when the server or client has been dropped or the connection between them has been lost.
In this case no more requests from this client will succeed.
sourcefn is_closed(&self) -> bool
fn is_closed(&self) -> bool
Returns whether the server has been dropped or the connection to it has been lost.
sourcefn max_request_size(&self) -> usize
fn max_request_size(&self) -> usize
The maximum allowed size of a request in bytes.
sourcefn set_max_request_size(&mut self, max_request_size: usize)
fn set_max_request_size(&mut self, max_request_size: usize)
Sets the maximum allowed size of a request in bytes.
This does not change the maximum request size the server will accept if this client has been received from a remote endpoint.
sourcefn max_reply_size(&self) -> usize
fn max_reply_size(&self) -> usize
The maximum allowed size of a reply in bytes.
sourcefn set_max_reply_size(&mut self, max_reply_size: usize)
fn set_max_reply_size(&mut self, max_reply_size: usize)
Sets the maximum allowed size of a reply in bytes.