Struct ReplicaConfig
pub struct ReplicaConfig {
pub id: ReplicaId,
pub peers: Vec<String>,
pub join: bool,
pub dir: PathBuf,
pub local: LocalOptions,
pub timing: Timing,
pub security: Security,
}Fields§
§id: ReplicaId§peers: Vec<String>Every replica’s host:port, indexed by replica ID (an empty string
for an ID that is not a member). For a new group, its members; once
the membership has changed, the saved membership takes precedence
and this only says where to find the group.
join: boolA new member of a running group: it starts with an empty directory,
asks the members in peers for the membership that includes it
(see ReplicaNode::change_members), then catches up. Ignored once
the directory holds a membership.
dir: PathBuf§local: LocalOptions§timing: Timing§security: SecurityMutual TLS and the token between members. With TLS, every member presents its certificate in both directions and verifies its peers’ against the CA; with a token, every stream proves it before its first frame. A member refuses frames on a stream that did neither.
Trait Implementations§
§impl Clone for ReplicaConfig
impl Clone for ReplicaConfig
§fn clone(&self) -> ReplicaConfig
fn clone(&self) -> ReplicaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReplicaConfig
impl RefUnwindSafe for ReplicaConfig
impl Send for ReplicaConfig
impl Sync for ReplicaConfig
impl Unpin for ReplicaConfig
impl UnsafeUnpin for ReplicaConfig
impl UnwindSafe for ReplicaConfig
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