pub struct Server { /* private fields */ }Implementations§
Source§impl Server
impl Server
pub fn tls(self, tls: TLS) -> Self
pub fn token(self, token: String) -> Self
pub fn recv_chunks_timeout(self, recv_chunks_timeout: Duration) -> Self
pub fn max_decoding_message_size(self, max_decoding_message_size: usize) -> Self
pub fn max_encoding_message_size(self, max_encoding_message_size: usize) -> Self
pub fn reuseaddr(self, reuseaddr: bool) -> Self
pub fn reuseport(self, reuseport: bool) -> Self
pub fn chunk_size(self, chunk_size: usize) -> Self
pub async fn run(self) -> Result<()>
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> HashExt for Twhere
T: ?Sized,
impl<T> HashExt for Twhere
T: ?Sized,
fn hash_value(self, h: u64) -> HashWrapper<Self>where
Self: Sized,
fn hash_empty(self) -> EmptyHashWrapper<Self>where
Self: Sized,
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