Struct grpcio::Server [−][src]
pub struct Server { /* fields omitted */ }
A gRPC server.
A single server can serve arbitrary number of services and can listen on more than one port.
Use ServerBuilder
to build a Server
.
Methods
impl Server
[src]
impl Server
pub fn shutdown(&mut self) -> ShutdownFuture
[src]
pub fn shutdown(&mut self) -> ShutdownFuture
Shutdown the server asynchronously.
pub fn cancel_all_calls(&mut self)
[src]
pub fn cancel_all_calls(&mut self)
Cancel all in-progress calls.
Only usable after shutdown.
pub fn start(&mut self)
[src]
pub fn start(&mut self)
Start the server.
pub fn bind_addrs(&self) -> &[(String, u16)]
[src]
pub fn bind_addrs(&self) -> &[(String, u16)]
Get binded addresses.