pub struct SetRelaysParams {
pub relay_urls: Vec<String>,
}Expand description
Params of Request::SetRelays (#53): the node’s desired CUSTOM relay set. Declarative —
“make the custom relay set exactly this” — applied as a live insert/remove diff against the
running endpoint (iroh 1.0.3 Endpoint::insert_relay/remove_relay) when the node is already
in relay_mode = "custom", then persisted to [network]. Each entry must parse as an iroh
RelayUrl; an empty list is rejected (custom mode requires ≥1 relay — fully disabling relays
is a relay_mode = "disabled" restart, not this verb). Switching a node that is currently
default/disabled onto custom persists the config but needs a restart to take effect (iroh
cannot live-transition the relay MODE) — signalled by SetRelaysResult::restart_required.
Fields§
§relay_urls: Vec<String>Trait Implementations§
Source§impl Clone for SetRelaysParams
impl Clone for SetRelaysParams
Source§fn clone(&self) -> SetRelaysParams
fn clone(&self) -> SetRelaysParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetRelaysParams
impl Debug for SetRelaysParams
Source§impl<'de> Deserialize<'de> for SetRelaysParams
impl<'de> Deserialize<'de> for SetRelaysParams
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 SetRelaysParams
Source§impl PartialEq for SetRelaysParams
impl PartialEq for SetRelaysParams
Source§impl Serialize for SetRelaysParams
impl Serialize for SetRelaysParams
impl StructuralPartialEq for SetRelaysParams
Auto Trait Implementations§
impl Freeze for SetRelaysParams
impl RefUnwindSafe for SetRelaysParams
impl Send for SetRelaysParams
impl Sync for SetRelaysParams
impl Unpin for SetRelaysParams
impl UnsafeUnpin for SetRelaysParams
impl UnwindSafe for SetRelaysParams
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