pub enum SyncTarget {
Ship,
Peers(Vec<String>),
Disabled,
}Expand description
Sync target for a topic.
Variants§
Ship
Use SHIP protocol to discover peers dynamically.
Peers(Vec<String>)
Sync with specific peer URLs.
Disabled
Sync disabled for this topic.
Trait Implementations§
Source§impl Clone for SyncTarget
impl Clone for SyncTarget
Source§impl Debug for SyncTarget
impl Debug for SyncTarget
Source§impl<'de> Deserialize<'de> for SyncTarget
impl<'de> Deserialize<'de> for SyncTarget
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
Auto Trait Implementations§
impl Freeze for SyncTarget
impl RefUnwindSafe for SyncTarget
impl Send for SyncTarget
impl Sync for SyncTarget
impl Unpin for SyncTarget
impl UnsafeUnpin for SyncTarget
impl UnwindSafe for SyncTarget
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