pub struct TcpMicroserviceServer { /* private fields */ }Implementations§
Source§impl TcpMicroserviceServer
impl TcpMicroserviceServer
pub fn new( options: TcpMicroserviceOptions, handlers: Vec<Arc<dyn MicroserviceHandler>>, ) -> Self
pub async fn listen(self) -> Result<(), TransportError>
pub async fn listen_with_shutdown<F>( self, shutdown: F, ) -> Result<(), TransportError>
Trait Implementations§
Source§impl MicroserviceServer for TcpMicroserviceServer
impl MicroserviceServer for TcpMicroserviceServer
fn listen_with_shutdown<'async_trait>(
self: Box<Self>,
shutdown: ShutdownFuture,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + 'async_trait>>where
Self: 'async_trait,
Auto Trait Implementations§
impl Freeze for TcpMicroserviceServer
impl !RefUnwindSafe for TcpMicroserviceServer
impl Send for TcpMicroserviceServer
impl Sync for TcpMicroserviceServer
impl Unpin for TcpMicroserviceServer
impl UnsafeUnpin for TcpMicroserviceServer
impl !UnwindSafe for TcpMicroserviceServer
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