pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
Sourcepub async fn serve(&self) -> Result<(), Error>
pub async fn serve(&self) -> Result<(), Error>
Start the server with the default configuration (localhost with default Agones port).
Sourcepub async fn spawn_on_random_port(&self) -> Result<u16, Error>
pub async fn spawn_on_random_port(&self) -> Result<u16, Error>
Spawn the server in background with random port.
Sourcepub async fn serve_with_incoming(
&self,
incoming: AddrIncoming,
) -> Result<(), Error>
pub async fn serve_with_incoming( &self, incoming: AddrIncoming, ) -> Result<(), Error>
Start the server with the given incoming.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl !Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request