pub enum Connector {
Public,
Relay(String),
Private,
}Expand description
How computers reach each other when they can’t connect directly. Written as public,
private or the relay’s URL, also in JSON.
Variants§
Public
iroh’s public relays and address lookup. Free, rate-limited, meant for trying things out.
Relay(String)
Your own iroh-relay, and nothing of anyone else’s.
Private
No relay at all: only computers reachable directly (same network, Tailscale, VPN).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Connector
impl StructuralPartialEq for Connector
Auto Trait Implementations§
impl Forget for Connector
impl Freeze for Connector
impl Move for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin for Connector
impl UnwindSafe for Connector
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.