pub struct NullGate { /* private fields */ }Expand description
No-op gate that admits every payload with zero cryptographic overhead. Used exclusively to establish a throughput ceiling for comparison.
Implementations§
Trait Implementations§
Source§impl WriteGate for NullGate
impl WriteGate for NullGate
Source§fn admit(&mut self, _payload: &WritePayload) -> Result<WriteReceipt, GateError>
fn admit(&mut self, _payload: &WritePayload) -> Result<WriteReceipt, GateError>
Admit a payload and return a tamper-evident receipt.
Source§fn verify_receipt(&self, _receipt: &WriteReceipt) -> bool
fn verify_receipt(&self, _receipt: &WriteReceipt) -> bool
Verify that a receipt is consistent with the gate’s internal state.
Source§fn chain_root(&self) -> [u8; 32]
fn chain_root(&self) -> [u8; 32]
Current chain commitment (root or chain head). Changes after every
successful
admit().Source§fn variant(&self) -> GateVariant
fn variant(&self) -> GateVariant
Gate variant identifier.
Auto Trait Implementations§
impl Freeze for NullGate
impl RefUnwindSafe for NullGate
impl Send for NullGate
impl Sync for NullGate
impl Unpin for NullGate
impl UnsafeUnpin for NullGate
impl UnwindSafe for NullGate
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