pub struct CoreCompartmentalizedPaxos<'a> {
pub proposers: Cluster<'a, Proposer>,
pub proxy_leaders: Cluster<'a, ProxyLeader>,
pub acceptors: Cluster<'a, Acceptor>,
pub config: CompartmentalizedPaxosConfig,
}
Fields§
§proposers: Cluster<'a, Proposer>
§proxy_leaders: Cluster<'a, ProxyLeader>
§acceptors: Cluster<'a, Acceptor>
§config: CompartmentalizedPaxosConfig
Trait Implementations§
Source§impl<'a> PaxosLike<'a> for CoreCompartmentalizedPaxos<'a>
impl<'a> PaxosLike<'a> for CoreCompartmentalizedPaxos<'a>
Source§type PaxosOut = ProxyLeader
type PaxosOut = ProxyLeader
The nodes that output the results of Paxos. Proposers in Paxos, Proxy leaders in Compartmentalized Paxos.
type Ballot = Ballot
fn payload_recipients(&self) -> &Cluster<'a, Self::PaxosIn>
fn log_stores(&self) -> &Cluster<'a, Self::PaxosLog>
fn get_recipient_from_ballot<L: Location<'a>>( ballot: Optional<Self::Ballot, L, Unbounded>, ) -> Optional<ClusterId<Self::PaxosIn>, L, Unbounded>
Source§unsafe fn build<P: PaxosPayload>(
self,
with_ballot: impl FnOnce(Stream<Ballot, Cluster<'a, Self::PaxosIn>, Unbounded>) -> Stream<P, Cluster<'a, Self::PaxosIn>, Unbounded>,
a_checkpoint: Optional<usize, Cluster<'a, Acceptor>, Unbounded>,
) -> Stream<(usize, Option<P>), Cluster<'a, Self::PaxosOut>, Unbounded, NoOrder>
unsafe fn build<P: PaxosPayload>( self, with_ballot: impl FnOnce(Stream<Ballot, Cluster<'a, Self::PaxosIn>, Unbounded>) -> Stream<P, Cluster<'a, Self::PaxosIn>, Unbounded>, a_checkpoint: Optional<usize, Cluster<'a, Acceptor>, Unbounded>, ) -> Stream<(usize, Option<P>), Cluster<'a, Self::PaxosOut>, Unbounded, NoOrder>
Safety Read more
Source§unsafe fn with_client<C: 'a, P: PaxosPayload>(
self,
clients: &Cluster<'a, C>,
payloads: Stream<P, Cluster<'a, C>, Unbounded>,
checkpoints: Optional<usize, Cluster<'a, Self::PaxosLog>, Unbounded>,
) -> Stream<(usize, Option<P>), Cluster<'a, Self::PaxosOut>, Unbounded, NoOrder>
unsafe fn with_client<C: 'a, P: PaxosPayload>( self, clients: &Cluster<'a, C>, payloads: Stream<P, Cluster<'a, C>, Unbounded>, checkpoints: Optional<usize, Cluster<'a, Self::PaxosLog>, Unbounded>, ) -> Stream<(usize, Option<P>), Cluster<'a, Self::PaxosOut>, Unbounded, NoOrder>
Safety Read more
Auto Trait Implementations§
impl<'a> Freeze for CoreCompartmentalizedPaxos<'a>
impl<'a> !RefUnwindSafe for CoreCompartmentalizedPaxos<'a>
impl<'a> !Send for CoreCompartmentalizedPaxos<'a>
impl<'a> !Sync for CoreCompartmentalizedPaxos<'a>
impl<'a> Unpin for CoreCompartmentalizedPaxos<'a>
impl<'a> !UnwindSafe for CoreCompartmentalizedPaxos<'a>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.