pub struct ConnectionEnv { /* private fields */ }Expand description
Connection-scoped environment for selecting the runtime context.
Implementations§
Source§impl ConnectionEnv
impl ConnectionEnv
Sourcepub fn new(runtime: Arc<RuntimeContext>) -> Self
pub fn new(runtime: Arc<RuntimeContext>) -> Self
Create a connection environment from an explicit runtime context.
Sourcepub fn runtime(&self) -> &Arc<RuntimeContext>
pub fn runtime(&self) -> &Arc<RuntimeContext>
Access the runtime context that will back newly opened connections.
Trait Implementations§
Source§impl Clone for ConnectionEnv
impl Clone for ConnectionEnv
Source§fn clone(&self) -> ConnectionEnv
fn clone(&self) -> ConnectionEnv
Returns a duplicate 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 ConnectionEnv
impl Debug for ConnectionEnv
Auto Trait Implementations§
impl Freeze for ConnectionEnv
impl !RefUnwindSafe for ConnectionEnv
impl Send for ConnectionEnv
impl Sync for ConnectionEnv
impl Unpin for ConnectionEnv
impl UnsafeUnpin for ConnectionEnv
impl !UnwindSafe for ConnectionEnv
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).