pub trait AfterResolvePlugin:
Send
+ Sync
+ NonLocalValue
+ ValueDebug {
// Required methods
fn after_resolve_condition(
self: Vc<Self>,
) -> Vc<AfterResolvePluginCondition>
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;
}
Required Methods§
Sourcefn after_resolve_condition(self: Vc<Self>) -> Vc<AfterResolvePluginCondition>where
Self: Sized,
fn after_resolve_condition(self: Vc<Self>) -> Vc<AfterResolvePluginCondition>where
Self: Sized,
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 VcValueTrait for Box<dyn AfterResolvePlugin>
impl VcValueTrait for Box<dyn AfterResolvePlugin>
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.
Source§fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
fn get_impl_vtables() -> &'static VTableRegistry<Self::ValueTrait>
Returns the vtable for an implementation of this trait.
Panics if ValueTypeId does not implement the trait.