Struct grpcio::ChannelBuilder[][src]

pub struct ChannelBuilder { /* fields omitted */ }

Channel factory in order to configure the properties.

Methods

impl ChannelBuilder
[src]

Build a secure Channel that connects to a specific address.

impl ChannelBuilder
[src]

Initialize a new ChannelBuilder.

Set default authority to pass if none specified on call construction.

Set maximum number of concurrent incoming streams to allow on a HTTP/2 connection.

Set maximum message length that the channel can receive. usize::MAX means unlimited.

Set maximum message length that the channel can send. -1 means unlimited.

Set maximum time between subsequent connection attempts.

Set time between the first and second connection attempts.

Set initial sequence number for HTTP/2 transports.

Set amount to read ahead on individual streams. Defaults to 64KB. Larger values help throughput on high-latency connections.

Set primary user agent, which goes at the start of the user-agent metadata sent on each request.

Set whether to allow the use of SO_REUSEPORT if available. Defaults to true.

Set the size of slice to try and read from the wire each time.

Set the minimum size of slice to try and read from the wire each time.

Set the maximum size of slice to try and read from the wire each time.

How much data are we willing to queue up per stream if write_buffer_hint is set. This is an upper bound.

How big a frame are we willing to receive via HTTP/2. Min 16384, max 16777215. Larger values give lower CPU usage for large messages, but more head of line blocking for small messages.

Set whether to enable BDP probing.

Minimum time between sending successive ping frames without receiving any data frame.

Minimum allowed time between receiving successive ping frames without sending any data frame.

How many pings can we send before needing to send a data frame or header frame? (0 indicates that an infinite number of pings can be sent without sending a data frame or header frame)

How many misbehaving pings the server can bear before sending goaway and closing the transport? (0 indicates that the server can bear an infinite number of misbehaving pings)

Set default compression algorithm for the channel.

Set default compression level for the channel.

After a duration of this time the client/server pings its peer to see if the transport is still alive.

After waiting for a duration of this time, if the keepalive ping sender does not receive the ping ack, it will close the transport.

Is it permissible to send keepalive pings without any outstanding streams.

Set optimization target for the channel. See OptTarget for all available optimization targets. Defaults to OptTarget::Blend.

Set LbPolicy for channel

This method allows one to set the load-balancing policy for a given channel.

Build an insecure Channel that connects to a specific address.

Auto Trait Implementations