Rindle docs and package mapSkip to main content

NoFanout

Struct NoFanout 

Source
pub struct NoFanout;
Expand description

The headless fan-out: accepts pushes by dropping them, commits trivially. What a consumer that applies a foreign CDC stream with no derivation composes with — rindle-backup-sqlite’s portable replay, an external SQLite-mirroring consumer. tx_begin never fails, so the Failed arms of the transaction machinery are structurally unreachable headless.

Trait Implementations§

Source§

impl CommitFanout for NoFanout

Source§

fn tx_begin(&self, tx_id: u64) -> StreamBegin

Open the fan-out for transaction tx_id (the post-(N-1) → N cursor). A send, not a wait (follow-ups/cluster-barrier-wakeup.md §6.1): the observer pins its pre-commit state concurrently with the caller’s remaining statements, and the caller collects the confirmation at the commit edge (FanoutStream::await_acks — the fence). Ready ⇒ stream chunks and finish; Failed ⇒ the observer was unreachable at send — the caller must NOT commit: it finishes the returned stream with an abort and fails the write (see ApplyTxn::commit_with_info).
Source§

fn recover_failed_begin(&self)

Repair after a Failed begin at commit time (the live pool reaps + respawns the offending worker so the caller’s retry can succeed). Headless: nothing to repair.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,