pub struct ReplicateRelayHold {
pub digest: RelayHoldDigest,
pub hold: Option<EntryOperation>,
}Expand description
A member forwards a hold it took to its next member, byte for byte as its writer stamped it
(#777, Law (Chain replication)). The next member takes it iff its own view makes the sender
its previous member, forwards it on unless it ends the chain, and acknowledges it to the sender
with RelayCarrierHeld once the rest of the chain did; the holder acknowledges the writer
last. A forward sent again, on the writer’s resend, carries the digest alone: a member that
does not know the hold refuses it (RelayCarrierRefused), and the sender then sends the
bytes.
Fields§
§digest: RelayHoldDigestThe digest of the hold.
hold: Option<EntryOperation>The hold as its writer stamped it, or None on a forward sent again.
Trait Implementations§
Source§impl Clone for ReplicateRelayHold
impl Clone for ReplicateRelayHold
Source§fn clone(&self) -> ReplicateRelayHold
fn clone(&self) -> ReplicateRelayHold
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReplicateRelayHold
impl Debug for ReplicateRelayHold
Source§impl<'de> Deserialize<'de> for ReplicateRelayHold
impl<'de> Deserialize<'de> for ReplicateRelayHold
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicateRelayHold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReplicateRelayHold, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl HandleMsg<ReplicateRelayHold> for MessageHandler
impl HandleMsg<ReplicateRelayHold> for MessageHandler
Source§fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 HandlerContext<'life2>,
msg: &'life3 ReplicateRelayHold,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MessageHandler: 'async_trait,
fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
context: &'life1 HandlerContext<'life2>,
msg: &'life3 ReplicateRelayHold,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
MessageHandler: 'async_trait,
Take a hold the authenticated origin forwarded as this node’s previous member of its key
(Law (Chain replication)), forward it on unless this node ends the chain, and
acknowledge it to the origin once the rest of the chain did. A forward of the digest alone
names a hold this node forwards already; for any other, the origin is asked for the bytes
(RelayCarrierRefused). The hold is judged as a relocated carrier is, as of its hold
instant, since the holder judged its freshness when it took it.
Source§impl Serialize for ReplicateRelayHold
impl Serialize for ReplicateRelayHold
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Forget for ReplicateRelayHold
impl Freeze for ReplicateRelayHold
impl Move for ReplicateRelayHold
impl RefUnwindSafe for ReplicateRelayHold
impl Send for ReplicateRelayHold
impl Sync for ReplicateRelayHold
impl Unpin for ReplicateRelayHold
impl UnsafeUnpin for ReplicateRelayHold
impl UnwindSafe for ReplicateRelayHold
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
impl<T> MaybeSend for T
impl<T> MaybeSendSync for T
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.