Struct swagger::context::ContextWrapper
[−]
[src]
pub struct ContextWrapper<'a, T: 'a, C> { /* fields omitted */ }
Context wrapper, to bind an API with a context.
Methods
impl<'a, T, C> ContextWrapper<'a, T, C>
[src]
pub fn new(api: &'a T, context: C) -> ContextWrapper<'a, T, C>
[src]
Create a new ContextWrapper, binding the API and context.
ⓘImportant traits for &'a mut Wpub fn api(&self) -> &T
[src]
ⓘImportant traits for &'a mut W
Borrows the API.
ⓘImportant traits for &'a mut Wpub fn context(&self) -> &C
[src]
ⓘImportant traits for &'a mut W
Borrows the context.
Trait Implementations
impl<'a, T: Debug + 'a, C: Debug> Debug for ContextWrapper<'a, T, C>
[src]
Auto Trait Implementations
impl<'a, T, C> Send for ContextWrapper<'a, T, C> where
C: Send,
T: Sync,
C: Send,
T: Sync,
impl<'a, T, C> Sync for ContextWrapper<'a, T, C> where
C: Sync,
T: Sync,
C: Sync,
T: Sync,