pub struct DummySerdeContext { /* private fields */ }Expand description
This context can be used to maintain ArtifactId references through a serialize/deserialize cycle even if the LoadHandles produced are invalid. This is useful when a loader is not present, such as when processing in the Distill Daemon.
Implementations§
Trait Implementations§
Source§impl LoaderInfoProvider for DummySerdeContext
impl LoaderInfoProvider for DummySerdeContext
Source§fn resolved_load_handle(
&self,
artifact_ref: &ArtifactRef,
) -> Option<Arc<ResolvedLoadHandle>>
fn resolved_load_handle( &self, artifact_ref: &ArtifactRef, ) -> Option<Arc<ResolvedLoadHandle>>
Returns the load handle for the artifact with the given UUID, if present. Read more
Source§fn artifact_id(&self, load: LoadHandle) -> Option<ArtifactId>
fn artifact_id(&self, load: LoadHandle) -> Option<ArtifactId>
Returns the ArtifactId for the given LoadHandle, if present. Read more
Auto Trait Implementations§
impl !Freeze for DummySerdeContext
impl RefUnwindSafe for DummySerdeContext
impl Send for DummySerdeContext
impl Sync for DummySerdeContext
impl Unpin for DummySerdeContext
impl UnwindSafe for DummySerdeContext
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