pub(crate) struct ChoirPolicy {
pub(crate) registry: Registry,
pub(crate) view: View,
}Expand description
The production admission shape: verify the author’s signature, then CAS the op against a view cached on the writer thread.
Fields§
§registry: Registry§view: ViewTrait Implementations§
Source§impl SubmitPolicy for ChoirPolicy
impl SubmitPolicy for ChoirPolicy
Source§fn check(&mut self, sub: &Submission) -> Result<(), String>
fn check(&mut self, sub: &Submission) -> Result<(), String>
Accepts or rejects a submission. Runs on the writer thread, so a
stateful policy (e.g. one holding a cached materialized view) sees
submissions in their final total order. Read more
Auto Trait Implementations§
impl Freeze for ChoirPolicy
impl RefUnwindSafe for ChoirPolicy
impl Send for ChoirPolicy
impl Sync for ChoirPolicy
impl Unpin for ChoirPolicy
impl UnsafeUnpin for ChoirPolicy
impl UnwindSafe for ChoirPolicy
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