pub struct TypedBuilderWithoudDefaultInterfaces<Bld>(/* private fields */);Expand description
A wrapper builder that stops it from auto-registering default interfaces
Trait Implementations§
Source§impl<Bld> Builder for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Builder,
impl<Bld> Builder for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Builder,
Source§fn instance_type_id(&self) -> TypeId
fn instance_type_id(&self) -> TypeId
TypeId of the type that this builder suppliesSource§fn instance_type_name(&self) -> &'static str
fn instance_type_name(&self) -> &'static str
Name of the type that this builder supplies in the
mod1::mod2::Typ
formatSource§fn interfaces(&self, clb: &mut dyn FnMut(&InterfaceDesc) -> bool)
fn interfaces(&self, clb: &mut dyn FnMut(&InterfaceDesc) -> bool)
Lists interfaces that the supplied type supports. Avoid using this
low-level method directly - use
BuilderExt convenience methods
instead.Source§fn metadata<'a>(&'a self, clb: &mut dyn FnMut(&'a dyn Any) -> bool)
fn metadata<'a>(&'a self, clb: &mut dyn FnMut(&'a dyn Any) -> bool)
Provider interface for accessing associated metadata. Avoid using this
low-level method directly - use
BuilderExt convenience methods
instead.Source§impl<Bld, Impl> TypedBuilder<Impl> for TypedBuilderWithoudDefaultInterfaces<Bld>
impl<Bld, Impl> TypedBuilder<Impl> for TypedBuilderWithoudDefaultInterfaces<Bld>
Source§fn get(&self, cat: &Catalog) -> Result<Arc<Impl>, InjectionError>
fn get(&self, cat: &Catalog) -> Result<Arc<Impl>, InjectionError>
Called to get an instance of the component, respecting the lifetime
defined by the scope
Source§fn bind_interfaces(&self, _cat: &mut CatalogBuilder)
fn bind_interfaces(&self, _cat: &mut CatalogBuilder)
Called during registration to automatically bind this builder to all
interfaces this component implements
Auto Trait Implementations§
impl<Bld> Freeze for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Freeze,
impl<Bld> RefUnwindSafe for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: RefUnwindSafe,
impl<Bld> Send for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Send,
impl<Bld> Sync for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Sync,
impl<Bld> Unpin for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: Unpin,
impl<Bld> UnwindSafe for TypedBuilderWithoudDefaultInterfaces<Bld>where
Bld: 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
Source§impl<T> BuilderExt for T
impl<T> BuilderExt for T
fn interfaces_get_all(&self) -> Vec<InterfaceDesc>
fn interfaces_contain<Iface>(&self) -> boolwhere
Iface: 'static,
fn interfaces_contain_type_id(&self, type_id: &TypeId) -> bool
fn metadata_get_first<Meta>(&self) -> Option<&Meta>where
Meta: 'static,
fn metadata_find_first<Meta>(
&self,
pred: impl Fn(&Meta) -> bool,
) -> Option<&Meta>where
Meta: 'static,
fn metadata_get_all<Meta>(&self) -> Vec<&Meta>where
Meta: 'static,
fn metadata_find_all<Meta>(&self, pred: impl Fn(&Meta) -> bool) -> Vec<&Meta>where
Meta: 'static,
fn metadata_contains<Meta>(&self, pred: impl Fn(&Meta) -> bool) -> boolwhere
Meta: 'static,
Source§impl<Bld, Impl> TypedBuilderExt<Impl> for Bld
impl<Bld, Impl> TypedBuilderExt<Impl> for Bld
Source§fn without_default_interfaces(self) -> impl TypedBuilder<Impl>
fn without_default_interfaces(self) -> impl TypedBuilder<Impl>
Stops builder from auto-registering the default interfaces, allowing a
fine-grain control over the binding