Struct north::NorthServiceOptions
source · pub struct NorthServiceOptions {
pub address: Option<String>,
pub name: Option<String>,
pub path_prefix: Option<String>,
pub version: Option<String>,
pub port: Option<u16>,
pub graceful_shutdown: bool,
pub enable_swagger: bool,
pub auto_acme: bool,
pub keep_alive: u32,
pub read_timeout: u32,
pub write_timeout: u32,
pub registry: Option<Arc<dyn ServiceRegistry>>,
}Expand description
A struct for service options. It holds the state for every created service
Fields§
§address: Option<String>TCP address of servcer
name: Option<String>§path_prefix: Option<String>§version: Option<String>§port: Option<u16>§graceful_shutdown: bool§enable_swagger: bool§auto_acme: bool§keep_alive: u32§read_timeout: u32§write_timeout: u32§registry: Option<Arc<dyn ServiceRegistry>>Trait Implementations§
source§impl Clone for NorthServiceOptions
impl Clone for NorthServiceOptions
source§fn clone(&self) -> NorthServiceOptions
fn clone(&self) -> NorthServiceOptions
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for NorthServiceOptions
impl !Send for NorthServiceOptions
impl !Sync for NorthServiceOptions
impl Unpin for NorthServiceOptions
impl !UnwindSafe for NorthServiceOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> TowerCompatExt for T
impl<T> TowerCompatExt for T
source§fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where
ResBody: Body + Send + 'static,
<ResBody as Body>::Data: Into<Bytes> + Send + 'static,
<ResBody as Body>::Error: Error + Send + Sync + 'static,
Err: Into<Error>,
Self: Service<Request<Body>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static,
Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
fn compat<ResBody, Err, Fut>(self) -> TowerCompatEndpoint<Self>where ResBody: Body + Send + 'static, <ResBody as Body>::Data: Into<Bytes> + Send + 'static, <ResBody as Body>::Error: Error + Send + Sync + 'static, Err: Into<Error>, Self: Service<Request<Body>, Response = Response<ResBody>, Error = Err, Future = Fut> + Clone + Send + Sync + Sized + 'static, Fut: Future<Output = Result<Response<ResBody>, Err>> + Send + 'static,
Converts a tower service to a poem endpoint.