pub enum Topology {
Mesh,
Star {
primary: GrainId,
secondary: Option<GrainId>,
},
}Expand description
How a synced workspace is wired to its peers right now.
Variants§
Mesh
Every device syncs with every other. Also the answer when no device was elected.
Star
Devices that are neither primary nor secondary sync only with those two.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Topology
impl<'de> Deserialize<'de> for Topology
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Topology
impl StructuralPartialEq for Topology
Auto Trait Implementations§
impl Forget for Topology
impl Freeze for Topology
impl Move for Topology
impl RefUnwindSafe for Topology
impl Send for Topology
impl Sync for Topology
impl Unpin for Topology
impl UnsafeUnpin for Topology
impl UnwindSafe for Topology
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