pub struct NoOpResourceResolver;Expand description
Resolver that fails on every external URI lookup. Suitable as a default
for self-contained .glb files (which embed all buffers + images) and
as a placeholder when no project context is available.
MeshDispatcher::default uses this. For .gltf files referencing
external .bin / texture buffers, construct
[MeshDispatcher::new(Arc::new(FileSystemResolver::new(...)))] instead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NoOpResourceResolver
impl RefUnwindSafe for NoOpResourceResolver
impl Send for NoOpResourceResolver
impl Sync for NoOpResourceResolver
impl Unpin for NoOpResourceResolver
impl UnsafeUnpin for NoOpResourceResolver
impl UnwindSafe for NoOpResourceResolver
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more