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§
Source§impl TraitVtablePrototype for Box<dyn AfterResolvePlugin>
impl TraitVtablePrototype for Box<dyn AfterResolvePlugin>
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 at program load by
#[ctor::ctor]
functions emitted by each #[turbo_tasks::value_impl] expansion. Read moretype ValueTrait = dyn AfterResolvePlugin
Source§fn get_trait_type_id() -> TraitTypeId
fn get_trait_type_id() -> TraitTypeId
Returns the type id of the trait object.
impl Dynamic<Box<dyn AfterResolvePlugin>> for Box<dyn AfterResolvePlugin>
impl Dynamic<Box<dyn ValueDebug>> for Box<dyn AfterResolvePlugin>
Available on debug-assertions enabled only.
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.