pub struct RpcServer { /* private fields */ }Expand description
RPC server
Handles incoming TCP connections from brokers and clients, decodes RPC requests, routes them to appropriate processors, and sends back responses.
Implementations§
Source§impl RpcServer
impl RpcServer
Sourcepub fn new(
listen_addr: SocketAddr,
processor_manager: Arc<ProcessorManager>,
) -> Self
pub fn new( listen_addr: SocketAddr, processor_manager: Arc<ProcessorManager>, ) -> Self
Create a new RPC server
Sourcepub async fn is_running(&self) -> bool
pub async fn is_running(&self) -> bool
Check if server is running
Auto Trait Implementations§
impl Freeze for RpcServer
impl !RefUnwindSafe for RpcServer
impl Send for RpcServer
impl Sync for RpcServer
impl Unpin for RpcServer
impl !UnwindSafe for RpcServer
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