pub struct MarkerDeliveryProjection { /* private fields */ }Expand description
Move-only typed wire projection of one protocol-selected compaction marker.
Construction remains private to drain_next_marker. The projection is
inseparable from its MarkerDrainCommit until the commit is consumed, so
storage cannot assemble a delivery from unrelated raw marker fields.
Raw fields cannot be assembled outside the protocol selector:
ⓘ
use liminal_protocol::lifecycle::MarkerDeliveryProjection;
use liminal_protocol::wire::ParticipantDelivery;
fn fabricate(delivery: ParticipantDelivery) -> MarkerDeliveryProjection {
MarkerDeliveryProjection { delivery }
}Debug output is not a parser or an alternate construction path:
ⓘ
use liminal_protocol::lifecycle::MarkerDeliveryProjection;
let _: MarkerDeliveryProjection = "MarkerDeliveryProjection { ... }".parse().unwrap();Implementations§
Source§impl MarkerDeliveryProjection
impl MarkerDeliveryProjection
Sourcepub const fn delivery(&self) -> &ParticipantDelivery
pub const fn delivery(&self) -> &ParticipantDelivery
Borrows the exact typed participant delivery selected by marker drain.
Sourcepub fn into_delivery(self) -> ParticipantDelivery
pub fn into_delivery(self) -> ParticipantDelivery
Consumes the projection into the wire delivery owned by outbox production.
Trait Implementations§
Source§impl Debug for MarkerDeliveryProjection
impl Debug for MarkerDeliveryProjection
impl Eq for MarkerDeliveryProjection
Source§impl PartialEq for MarkerDeliveryProjection
impl PartialEq for MarkerDeliveryProjection
impl StructuralPartialEq for MarkerDeliveryProjection
Auto Trait Implementations§
impl Freeze for MarkerDeliveryProjection
impl RefUnwindSafe for MarkerDeliveryProjection
impl Send for MarkerDeliveryProjection
impl Sync for MarkerDeliveryProjection
impl Unpin for MarkerDeliveryProjection
impl UnsafeUnpin for MarkerDeliveryProjection
impl UnwindSafe for MarkerDeliveryProjection
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