pub trait ResolveOriginExt: Send {
// Required methods
fn resolve_asset(
self: Vc<Self>,
request: Vc<Request>,
options: Vc<ResolveOptions>,
reference_type: ReferenceType,
) -> impl Future<Output = Result<Vc<ModuleResolveResult>>> + Send;
fn with_transition(
self: ResolvedVc<Self>,
transition: RcStr,
) -> impl Future<Output = Result<Vc<Box<dyn ResolveOrigin>>>> + Send;
}Required Methods§
Sourcefn resolve_asset(
self: Vc<Self>,
request: Vc<Request>,
options: Vc<ResolveOptions>,
reference_type: ReferenceType,
) -> impl Future<Output = Result<Vc<ModuleResolveResult>>> + Send
fn resolve_asset( self: Vc<Self>, request: Vc<Request>, options: Vc<ResolveOptions>, reference_type: ReferenceType, ) -> impl Future<Output = Result<Vc<ModuleResolveResult>>> + Send
Resolve to an asset from that origin. Custom resolve options can be
passed. Otherwise provide origin.resolve_options() unmodified.
Sourcefn with_transition(
self: ResolvedVc<Self>,
transition: RcStr,
) -> impl Future<Output = Result<Vc<Box<dyn ResolveOrigin>>>> + Send
fn with_transition( self: ResolvedVc<Self>, transition: RcStr, ) -> impl Future<Output = Result<Vc<Box<dyn ResolveOrigin>>>> + Send
Adds a transition that is used for resolved assets.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".