Trait remoc::rtc::Client

source ·
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);
}
Available on crate feature rtc only.
Expand description

Client of a remotable trait.

Required Methods§

source

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.

source

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.

source

fn is_closed(&self) -> bool

Returns whether the server has been dropped or the connection to it has been lost.

source

fn max_request_size(&self) -> usize

The maximum allowed size of a request in bytes.

source

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.

source

fn max_reply_size(&self) -> usize

The maximum allowed size of a reply in bytes.

source

fn set_max_reply_size(&mut self, max_reply_size: usize)

Sets the maximum allowed size of a reply in bytes.

Implementors§