Struct grpcio::ServerBuilder [−][src]
pub struct ServerBuilder { /* fields omitted */ }
Server
factory in order to configure the properties.
Methods
impl ServerBuilder
[src]
impl ServerBuilder
pub fn bind_secure<S: Into<String>>(
self,
host: S,
port: u16,
c: ServerCredentials
) -> ServerBuilder
[src]
pub fn bind_secure<S: Into<String>>(
self,
host: S,
port: u16,
c: ServerCredentials
) -> ServerBuilder
Bind to an address for secure connection.
This function can be called multiple times to bind to multiple ports.
impl ServerBuilder
[src]
impl ServerBuilder
pub fn new(env: Arc<Environment>) -> ServerBuilder
[src]
pub fn new(env: Arc<Environment>) -> ServerBuilder
Initialize a new ServerBuilder
.
pub fn bind<S: Into<String>>(self, host: S, port: u16) -> ServerBuilder
[src]
pub fn bind<S: Into<String>>(self, host: S, port: u16) -> ServerBuilder
Bind to an address.
This function can be called multiple times to bind to multiple ports.
pub fn requests_slot_per_cq(self, slots: usize) -> ServerBuilder
[src]
pub fn requests_slot_per_cq(self, slots: usize) -> ServerBuilder
Set how many requests a completion queue can handle.
pub fn register_service(self, service: Service) -> ServerBuilder
[src]
pub fn register_service(self, service: Service) -> ServerBuilder
Register a service.
pub fn build(self) -> Result<Server>
[src]
pub fn build(self) -> Result<Server>
Finalize the ServerBuilder
and build the Server
.
Auto Trait Implementations
impl !Send for ServerBuilder
impl !Send for ServerBuilder
impl !Sync for ServerBuilder
impl !Sync for ServerBuilder