pub struct HostScorerBatch<'a> {
pub features: &'a [&'a dyn ScoringFeatureSource],
pub reference_time_millis: u64,
pub task_context: Option<&'a RuntimeTaskContext>,
pub scratch_account: &'a QueryMemoryAccount,
}Expand description
Borrowed inputs for the host-scoring escape hatch. Scratch allocations must reserve this query account before allocation and release their leases before returning; feature rows cannot escape the call.
Fields§
§features: &'a [&'a dyn ScoringFeatureSource]§reference_time_millis: u64§task_context: Option<&'a RuntimeTaskContext>§scratch_account: &'a QueryMemoryAccountImplementations§
Source§impl HostScorerBatch<'_>
impl HostScorerBatch<'_>
pub fn checkpoint(&self) -> Result<()>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for HostScorerBatch<'a>
impl<'a> !Send for HostScorerBatch<'a>
impl<'a> !Sync for HostScorerBatch<'a>
impl<'a> !UnwindSafe for HostScorerBatch<'a>
impl<'a> Freeze for HostScorerBatch<'a>
impl<'a> Unpin for HostScorerBatch<'a>
impl<'a> UnsafeUnpin for HostScorerBatch<'a>
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