pub struct Context {
pub node_config_path: PathBuf,
pub proxy: ProxyConfig,
pub opened: Mutex<HashMap<(String, Option<NewPathRequestTlsOptions>), u16>>,
pub ports: Mutex<PortAllocator>,
}
Expand description
Defines the Context to all warp calls.
Fields§
§node_config_path: PathBuf
Specifies the node config file.
proxy: ProxyConfig
The address to proxy to if at all.
opened: Mutex<HashMap<(String, Option<NewPathRequestTlsOptions>), u16>>
Specificies ports we’re already serving on.
ports: Mutex<PortAllocator>
Specificies available path ports.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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
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