pub enum ReceiveFence {
Normal(Channel),
History(FetchOps),
}Expand description
Exact purpose of one actor-backed replica receive reservation. This is not authentication, history validation, or replication authority.
Variants§
Normal(Channel)
Normal data for the receiver’s current group/configuration/view/epoch.
History(FetchOps)
Response to one exact outstanding selected-history request.
Implementations§
Source§impl ReceiveFence
impl ReceiveFence
Sourcepub const fn scope(self) -> Scope
pub const fn scope(self) -> Scope
Group selected by the owning actor, never by incoming payload bytes.
Sourcepub fn validate_routing(
self,
packet: Packet<'_>,
limits: EnvelopeLimits,
) -> Result<(), WireError>
pub fn validate_routing( self, packet: Packet<'_>, limits: EnvelopeLimits, ) -> Result<(), WireError>
Inspect only bounded protocol metadata. A mismatch must not consume the fresh reservation. The actor must still decode/hash bodies and validate membership, history, application state, and its current authority.
Trait Implementations§
Source§impl Clone for ReceiveFence
impl Clone for ReceiveFence
impl Copy for ReceiveFence
Source§impl Debug for ReceiveFence
impl Debug for ReceiveFence
impl Eq for ReceiveFence
Source§impl PartialEq for ReceiveFence
impl PartialEq for ReceiveFence
impl StructuralPartialEq for ReceiveFence
Auto Trait Implementations§
impl Freeze for ReceiveFence
impl RefUnwindSafe for ReceiveFence
impl Send for ReceiveFence
impl Sync for ReceiveFence
impl Unpin for ReceiveFence
impl UnsafeUnpin for ReceiveFence
impl UnwindSafe for ReceiveFence
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