pub struct PublicationGate { /* private fields */ }Expand description
Decides what may go on the wire at the phase the turn has reached.
Implementations§
Source§impl PublicationGate
impl PublicationGate
Sourcepub fn admits(&self, block: &ResponseBlock) -> bool
pub fn admits(&self, block: &ResponseBlock) -> bool
Whether block may be published now.
Receipts and model-authored blocks wait for commit. Notices and cards do not: a notice is a server statement about what is not happening, and a card is a question, so neither can be mistaken for a success.
Trait Implementations§
Source§impl Clone for PublicationGate
impl Clone for PublicationGate
impl Copy for PublicationGate
Source§impl Debug for PublicationGate
impl Debug for PublicationGate
Source§impl Default for PublicationGate
impl Default for PublicationGate
impl Eq for PublicationGate
Source§impl PartialEq for PublicationGate
impl PartialEq for PublicationGate
impl StructuralPartialEq for PublicationGate
Auto Trait Implementations§
impl Freeze for PublicationGate
impl RefUnwindSafe for PublicationGate
impl Send for PublicationGate
impl Sync for PublicationGate
impl Unpin for PublicationGate
impl UnsafeUnpin for PublicationGate
impl UnwindSafe for PublicationGate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.