pub struct ExtensionWrapper<T>where
T: Debug,{ /* private fields */ }Available on crate feature
core only.Implementations§
Source§impl<T> ExtensionWrapper<T>where
T: ExtensionType + Debug,
impl<T> ExtensionWrapper<T>where
T: ExtensionType + Debug,
pub const fn new(inner: T) -> ExtensionWrapper<T>
Trait Implementations§
Source§impl<T> AnyExtension for ExtensionWrapper<T>where
T: ExtensionType + Debug + 'static,
impl<T> AnyExtension for ExtensionWrapper<T>where
T: ExtensionType + Debug + 'static,
fn id(&self) -> &'static str
fn name(&self) -> &'static str
fn version(&self) -> &'static str
fn priority(&self) -> u32
fn as_any(&self) -> &(dyn Any + 'static)
fn type_name(&self) -> &'static str
fn as_schema(&self) -> Option<&(dyn SchemaExtensionTyped + 'static)>
Source§fn as_api(&self) -> Option<&(dyn ApiExtensionTypedDyn + 'static)>
fn as_api(&self) -> Option<&(dyn ApiExtensionTypedDyn + 'static)>
Available on crate feature
web only.fn as_config(&self) -> Option<&(dyn ConfigExtensionTyped + 'static)>
fn as_job(&self) -> Option<&(dyn JobExtensionTyped + 'static)>
fn as_provider(&self) -> Option<&(dyn ProviderExtensionTyped + 'static)>
Auto Trait Implementations§
impl<T> Freeze for ExtensionWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for ExtensionWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for ExtensionWrapper<T>where
T: Send,
impl<T> Sync for ExtensionWrapper<T>where
T: Sync,
impl<T> Unpin for ExtensionWrapper<T>where
T: Unpin,
impl<T> UnsafeUnpin for ExtensionWrapper<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ExtensionWrapper<T>where
T: UnwindSafe,
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