pub struct SetRelaysResult {
pub changed: bool,
pub restart_required: bool,
}Expand description
Result of Request::SetRelays (#53).
Fields§
§changed: boolThe persisted relay_urls differed from the prior config (a no-op edit → false).
restart_required: booltrue iff the node’s current relay_mode is not custom, so the new set was persisted
but NOT applied live — a node restart is required for it to take effect. false on the
live custom→custom path (already applied to the running endpoint).
Trait Implementations§
Source§impl Clone for SetRelaysResult
impl Clone for SetRelaysResult
Source§fn clone(&self) -> SetRelaysResult
fn clone(&self) -> SetRelaysResult
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 SetRelaysResult
impl Debug for SetRelaysResult
Source§impl<'de> Deserialize<'de> for SetRelaysResult
impl<'de> Deserialize<'de> for SetRelaysResult
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 SetRelaysResult
Source§impl PartialEq for SetRelaysResult
impl PartialEq for SetRelaysResult
Source§impl Serialize for SetRelaysResult
impl Serialize for SetRelaysResult
impl StructuralPartialEq for SetRelaysResult
Auto Trait Implementations§
impl Freeze for SetRelaysResult
impl RefUnwindSafe for SetRelaysResult
impl Send for SetRelaysResult
impl Sync for SetRelaysResult
impl Unpin for SetRelaysResult
impl UnsafeUnpin for SetRelaysResult
impl UnwindSafe for SetRelaysResult
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