[−][src]Struct grpcio::ServerBuilder
[Server
] factory in order to configure the properties.
Methods
impl ServerBuilder
[src]
pub fn bind_secure<S: Into<String>>(
self,
host: S,
port: u16,
c: ServerCredentials
) -> ServerBuilder
[src]
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]
pub fn new(env: Arc<Environment>) -> ServerBuilder
[src]
Initialize a new [ServerBuilder
].
pub fn bind<S: Into<String>>(self, host: S, port: u16) -> ServerBuilder
[src]
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]
Set how many requests a completion queue can handle.
pub fn register_service(self, service: Service) -> ServerBuilder
[src]
Register a service.
pub fn build(self) -> Result<Server>
[src]
Finalize the [ServerBuilder
] and build the [Server
].
Auto Trait Implementations
impl !Send for ServerBuilder
impl !Sync for ServerBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,