pub struct HostScorerDescriptor<'a> { /* private fields */ }Expand description
Validated identity and logical per-row cost for a host’s batch scorer. Query attachments include name/version in their cache identity. This cost is a planning hint, not elapsed time.
Implementations§
Source§impl<'a> HostScorerDescriptor<'a>
impl<'a> HostScorerDescriptor<'a>
pub fn new( name: &'a str, version: &'a str, cpu_units_per_row: NonZeroU64, ) -> Result<Self>
pub fn name(self) -> &'a str
pub fn version(self) -> &'a str
pub fn cpu_units_per_row(self) -> NonZeroU64
Trait Implementations§
Source§impl<'a> Clone for HostScorerDescriptor<'a>
impl<'a> Clone for HostScorerDescriptor<'a>
impl<'a> Copy for HostScorerDescriptor<'a>
Source§impl<'a> Debug for HostScorerDescriptor<'a>
impl<'a> Debug for HostScorerDescriptor<'a>
impl<'a> Eq for HostScorerDescriptor<'a>
Source§impl<'a> PartialEq for HostScorerDescriptor<'a>
impl<'a> PartialEq for HostScorerDescriptor<'a>
impl<'a> StructuralPartialEq for HostScorerDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for HostScorerDescriptor<'a>
impl<'a> RefUnwindSafe for HostScorerDescriptor<'a>
impl<'a> Send for HostScorerDescriptor<'a>
impl<'a> Sync for HostScorerDescriptor<'a>
impl<'a> Unpin for HostScorerDescriptor<'a>
impl<'a> UnsafeUnpin for HostScorerDescriptor<'a>
impl<'a> UnwindSafe for HostScorerDescriptor<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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