pub trait AfterResolvePlugin:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn after_resolve_condition(&self) -> Vc<AfterResolvePluginCondition>;
fn after_resolve(
self: Vc<Self>,
fs_path: FileSystemPath,
lookup_path: FileSystemPath,
reference_type: ReferenceType,
request: Vc<Request>,
) -> Vc<ResolveResultOption>
where Self: Sized;
}Required Methods§
Sourcefn after_resolve_condition(&self) -> Vc<AfterResolvePluginCondition>
fn after_resolve_condition(&self) -> Vc<AfterResolvePluginCondition>
A condition which determines if the hooks gets called.
Sourcefn after_resolve(
self: Vc<Self>,
fs_path: FileSystemPath,
lookup_path: FileSystemPath,
reference_type: ReferenceType,
request: Vc<Request>,
) -> Vc<ResolveResultOption>where
Self: Sized,
fn after_resolve(
self: Vc<Self>,
fs_path: FileSystemPath,
lookup_path: FileSystemPath,
reference_type: ReferenceType,
request: Vc<Request>,
) -> Vc<ResolveResultOption>where
Self: Sized,
This hook gets called when a full filepath has been resolved and the condition matches. If a value is returned it replaces the resolve result.
Trait Implementations§
impl Dynamic<Box<dyn AfterResolvePlugin>> for Box<dyn AfterResolvePlugin>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn AfterResolvePlugin>
Available on debug-assertions enabled only.
Source§impl TraitVtablePrototype for Box<dyn AfterResolvePlugin>
impl TraitVtablePrototype for Box<dyn AfterResolvePlugin>
impl Upcast<Box<dyn AfterResolvePlugin>> for Box<dyn AfterResolvePlugin>
impl Upcast<Box<dyn ValueDebug>> for Box<dyn AfterResolvePlugin>
Available on debug-assertions enabled only.
impl UpcastStrict<Box<dyn ValueDebug>> for Box<dyn AfterResolvePlugin>
Available on debug-assertions enabled only.
Source§impl VcValueTrait for Box<dyn AfterResolvePlugin>
impl VcValueTrait for Box<dyn AfterResolvePlugin>
Source§const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
const IMPL_VTABLES: &'static VTableRegistry<Self::ValueTrait>
The per-trait vtable registry, populated by [crate::value_type::register_all_trait_methods] Read more
type ValueTrait = dyn AfterResolvePlugin
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".