pub struct KernelBvhChainSink { /* private fields */ }Expand description
Kernel ChainSink implementation: maps BVH mutations to ExoChain events.
Payloads are JSON (chain path already CBOR-encodes the envelope per
ADR-030 when the chain is dual-signed). Dual-sign is applied by
ChainManager when keys are configured (ADR-028).
Implementations§
Source§impl KernelBvhChainSink
impl KernelBvhChainSink
Sourcepub fn new(chain: Arc<ChainManager>) -> Self
pub fn new(chain: Arc<ChainManager>) -> Self
Construct from a live chain manager.
Trait Implementations§
Source§impl ChainSink for KernelBvhChainSink
impl ChainSink for KernelBvhChainSink
Source§fn on_event(&self, event: &BvhChainKind)
fn on_event(&self, event: &BvhChainKind)
Observe a mutation. Implementations must not panic; failures are
logged at the sink side (chain append is best-effort for liveness,
but ADR-022 expects every write path to attempt append).
Auto Trait Implementations§
impl Freeze for KernelBvhChainSink
impl RefUnwindSafe for KernelBvhChainSink
impl Send for KernelBvhChainSink
impl Sync for KernelBvhChainSink
impl Unpin for KernelBvhChainSink
impl UnsafeUnpin for KernelBvhChainSink
impl UnwindSafe for KernelBvhChainSink
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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