pub struct Server<C> { /* private fields */ }Expand description
gRPC server for session reduce service
Implementations§
Source§impl<C> Server<C>
impl<C> Server<C>
Sourcepub async fn start_with_shutdown(
self,
user_shutdown_rx: Receiver<()>,
) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn start_with_shutdown( self, user_shutdown_rx: Receiver<()>, ) -> Result<(), Box<dyn Error + Send + Sync>>
Starts the gRPC server. When message is received on the shutdown channel, graceful shutdown of the gRPC server will be initiated.
Trait Implementations§
Source§impl<C> ServerExtras<C> for Server<C>
impl<C> ServerExtras<C> for Server<C>
Source§fn transform_inner<F>(self, f: F) -> Self
fn transform_inner<F>(self, f: F) -> Self
Extract the inner server, transform it, and wrap it back
Source§fn with_socket_file(self, file: impl Into<PathBuf>) -> Selfwhere
Self: Sized,
fn with_socket_file(self, file: impl Into<PathBuf>) -> Selfwhere
Self: Sized,
Set the unix domain socket file path used by the gRPC server to listen for incoming connections.
Source§fn socket_file<'a>(&'a self) -> &'a Pathwhere
T: 'a,
fn socket_file<'a>(&'a self) -> &'a Pathwhere
T: 'a,
Get the unix domain socket file path where gRPC server listens for incoming connections.
Source§fn with_max_message_size(self, message_size: usize) -> Selfwhere
Self: Sized,
fn with_max_message_size(self, message_size: usize) -> Selfwhere
Self: Sized,
Set the maximum size of an encoded and decoded gRPC message. The value of
message_size is in bytes.Source§fn max_message_size(&self) -> usize
fn max_message_size(&self) -> usize
Get the maximum size of an encoded and decoded gRPC message in bytes.
Source§fn with_server_info_file(self, file: impl Into<PathBuf>) -> Selfwhere
Self: Sized,
fn with_server_info_file(self, file: impl Into<PathBuf>) -> Selfwhere
Self: Sized,
Change the file in which numaflow server information is stored on start up to the new value.
Source§fn server_info_file<'a>(&'a self) -> &'a Pathwhere
T: 'a,
fn server_info_file<'a>(&'a self) -> &'a Pathwhere
T: 'a,
Get the path to the file where numaflow server info is stored.
Auto Trait Implementations§
impl<C> Freeze for Server<C>where
C: Freeze,
impl<C> RefUnwindSafe for Server<C>where
C: RefUnwindSafe,
impl<C> Send for Server<C>where
C: Send,
impl<C> Sync for Server<C>where
C: Sync,
impl<C> Unpin for Server<C>where
C: Unpin,
impl<C> UnwindSafe for Server<C>where
C: UnwindSafe,
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