pub struct DubboServer { /* private fields */ }
Implementations§
source§impl DubboServer
impl DubboServer
pub fn with_accpet_http1(self, accept_http2: bool) -> Self
pub fn with_init_stream_window_size(self, stream_window: u32) -> Self
pub fn with_init_connection_window_size(self, connection_window: u32) -> Self
pub fn with_max_concurrent_streams(self, concurrent_streams: u32) -> Self
pub fn with_max_frame_size(self, max_frame_size: u32) -> Self
pub fn with_http2_keepalive_interval(self, interval: Duration) -> Self
pub fn with_http2_keepalive_timeout(self, timeout: Duration) -> Self
pub fn with_listener(self, name: String) -> Self
source§impl DubboServer
impl DubboServer
source§impl DubboServer
impl DubboServer
pub fn add_service<S>(self, name: String, service: S) -> Selfwhere S: Service<Request<Body>, Response = Response<BoxBody>, Error = Infallible> + Clone + Send + 'static, S::Future: Send + 'static, S::Error: Into<Box<dyn Error + Send + Sync>> + Send + 'static,
pub async fn serve( self, addr: SocketAddr ) -> Result<(), Box<dyn Error + Send + Sync>>
pub async fn serve_with_graceful( self, addr: SocketAddr, signal: impl Future<Output = ()> ) -> Result<(), Box<dyn Error + Send + Sync>>
Trait Implementations§
source§impl Clone for DubboServer
impl Clone for DubboServer
source§fn clone(&self) -> DubboServer
fn clone(&self) -> DubboServer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DubboServer
impl Debug for DubboServer
source§impl Default for DubboServer
impl Default for DubboServer
source§fn default() -> DubboServer
fn default() -> DubboServer
Returns the “default value” for a type. Read more