pub struct AdmittedTransfer<P> { /* private fields */ }Expand description
A transfer policy that passed the public dataflow law suite.
Implementations§
Source§impl<P> AdmittedTransfer<P>
impl<P> AdmittedTransfer<P>
Sourcepub fn admit<S>(policy: P, samples: &[S]) -> Result<Self, LawViolation>where
S: JoinSemilattice,
P: TransferPolicy<S>,
pub fn admit<S>(policy: P, samples: &[S]) -> Result<Self, LawViolation>where
S: JoinSemilattice,
P: TransferPolicy<S>,
Admits a policy only when both lattice and transfer laws hold.
Sourcepub const fn fingerprint(&self) -> ValueFingerprint
pub const fn fingerprint(&self) -> ValueFingerprint
Returns the stable identity captured at admission.
Sourcepub const fn policy_size(&self) -> usize
pub const fn policy_size(&self) -> usize
Returns the retained policy size captured at admission.
Sourcepub fn transfer<S>(&self, state: &S) -> Swhere
P: TransferPolicy<S>,
pub fn transfer<S>(&self, state: &S) -> Swhere
P: TransferPolicy<S>,
Applies the admitted policy.
Trait Implementations§
Source§impl<P: Clone> Clone for AdmittedTransfer<P>
impl<P: Clone> Clone for AdmittedTransfer<P>
Source§fn clone(&self) -> AdmittedTransfer<P>
fn clone(&self) -> AdmittedTransfer<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<P> Freeze for AdmittedTransfer<P>where
P: Freeze,
impl<P> RefUnwindSafe for AdmittedTransfer<P>where
P: RefUnwindSafe,
impl<P> Send for AdmittedTransfer<P>where
P: Send,
impl<P> Sync for AdmittedTransfer<P>where
P: Sync,
impl<P> Unpin for AdmittedTransfer<P>where
P: Unpin,
impl<P> UnsafeUnpin for AdmittedTransfer<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for AdmittedTransfer<P>where
P: UnwindSafe,
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