pub struct SemanticCuller { /* private fields */ }Expand description
Semantic culler for agency-driven data filtering
Implementations§
Source§impl SemanticCuller
impl SemanticCuller
Sourcepub fn add_policy(&mut self, policy: AgencyPolicy)
pub fn add_policy(&mut self, policy: AgencyPolicy)
Add agency policy
Sourcepub fn cull_quins(
&mut self,
agency_id: &str,
quins: Vec<Quin>,
) -> Vec<CullingResult>
pub fn cull_quins( &mut self, agency_id: &str, quins: Vec<Quin>, ) -> Vec<CullingResult>
Cull a batch of Quins based on agency policies
Sourcepub fn cull_quins_into(
&mut self,
agency_id: &str,
quins: &[Quin],
out: &mut [CullingVerdict],
) -> Result<usize, CullingError>
pub fn cull_quins_into( &mut self, agency_id: &str, quins: &[Quin], out: &mut [CullingVerdict], ) -> Result<usize, CullingError>
Zero-heap batch culling API for hot-path callers.
Sourcepub fn get_stats(&self) -> &CullingStats
pub fn get_stats(&self) -> &CullingStats
Get culling statistics
Sourcepub fn reset_stats(&mut self)
pub fn reset_stats(&mut self)
Reset culling statistics
Sourcepub fn generate_proof_for_quin(
&mut self,
quin: &Quin,
) -> Result<SemanticProof, String>
pub fn generate_proof_for_quin( &mut self, quin: &Quin, ) -> Result<SemanticProof, String>
Generate a semantic proof for a Quin
Auto Trait Implementations§
impl Freeze for SemanticCuller
impl RefUnwindSafe for SemanticCuller
impl Send for SemanticCuller
impl Sync for SemanticCuller
impl Unpin for SemanticCuller
impl UnsafeUnpin for SemanticCuller
impl UnwindSafe for SemanticCuller
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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