pub struct LoadedPredictor<H> { /* private fields */ }Expand description
Process-local sidecar. It deliberately implements neither Serialize nor
Deserialize, so opaque host objects cannot leak into portable packages.
Implementations§
Source§impl<H> LoadedPredictor<H>
impl<H> LoadedPredictor<H>
pub fn new( package: PortablePredictorPackage, artifacts: BTreeMap<ArtifactId, H>, ) -> Result<Self>
pub fn package(&self) -> &PortablePredictorPackage
pub fn artifact(&self, artifact_id: &ArtifactId) -> Option<&H>
pub fn into_parts(self) -> (PortablePredictorPackage, BTreeMap<ArtifactId, H>)
Auto Trait Implementations§
impl<H> Freeze for LoadedPredictor<H>
impl<H> RefUnwindSafe for LoadedPredictor<H>where
H: RefUnwindSafe,
impl<H> Send for LoadedPredictor<H>where
H: Send,
impl<H> Sync for LoadedPredictor<H>where
H: Sync,
impl<H> Unpin for LoadedPredictor<H>
impl<H> UnsafeUnpin for LoadedPredictor<H>
impl<H> UnwindSafe for LoadedPredictor<H>where
H: RefUnwindSafe,
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