pub struct GroupSpec {
pub policy_settings: Option<(IdentityKey, Option<Policy>)>,
pub net: NetInfo,
pub mixnet_locator: bool,
pub mixnet_comms: bool,
}
Expand description
Specification for a group. This limits what networks will be used for the group, whether mixnet capabilities are required, and what specific nodes are allowed into the group.
Fields§
§policy_settings: Option<(IdentityKey, Option<Policy>)>
What public key (if any) should be used to identify oneself to other nodes, and optionally what policy should be used to limit the group to only nodes whose key passes said policy.
net: NetInfo
What networks should be used when navigating this group.
mixnet_locator: bool
Whether or not a mixnet must be used when finding group members
mixnet_comms: bool
Whether or not a mixnet must be used when communicating with group members.
Auto Trait Implementations§
impl Freeze for GroupSpec
impl !RefUnwindSafe for GroupSpec
impl !Send for GroupSpec
impl !Sync for GroupSpec
impl Unpin for GroupSpec
impl !UnwindSafe for GroupSpec
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