pub struct NativeContextExtensions<'a> { /* private fields */ }Expand description
A data type to represent a heterogeneous collection of extensions which are available to native functions. A value to this is passed into the session function execution.
The implementation uses the crate better_any which implements a version of the Any
type, called Tid<a>, which allows for up to one lifetime parameter. This avoids that extensions need to have ’staticlifetime, whichAnyrequires. In order to make a struct suitable to be a 'Tid', use#[derive(Tid)]` in the struct declaration. (See also
tests at the end of this module.)
Implementations
Trait Implementations
sourceimpl<'a> Default for NativeContextExtensions<'a>
impl<'a> Default for NativeContextExtensions<'a>
sourcefn default() -> NativeContextExtensions<'a>
fn default() -> NativeContextExtensions<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> !RefUnwindSafe for NativeContextExtensions<'a>
impl<'a> !Send for NativeContextExtensions<'a>
impl<'a> !Sync for NativeContextExtensions<'a>
impl<'a> Unpin for NativeContextExtensions<'a>
impl<'a> !UnwindSafe for NativeContextExtensions<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more