pub enum ReloadHint {
None,
Reload,
Restart,
}Expand description
How much of the server needs to restart after a config change.
§Why this lives here alongside apimock_config::ReloadHint
The config crate carries the same concept as a view::ReloadHint
struct because it’s what an ApplyResult / SaveResult carries;
GUIs consume it from the config layer without pulling server.
The server-side mirror is an enum for more ergonomic pattern
matching on the server’s own code paths. The From impls below
bridge the two.
Variants§
None
No reload required.
Reload
Rule sets / middlewares need to reload.
Restart
Listener configuration changed; need a full restart.
Trait Implementations§
Source§impl Clone for ReloadHint
impl Clone for ReloadHint
Source§fn clone(&self) -> ReloadHint
fn clone(&self) -> ReloadHint
Returns a duplicate of the value. Read more
1.0.0 · 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 ReloadHint
impl Debug for ReloadHint
Source§impl From<ReloadHint> for ReloadHint
impl From<ReloadHint> for ReloadHint
Source§fn from(value: ReloadHint) -> Self
fn from(value: ReloadHint) -> Self
Converts to this type from the input type.
Source§impl From<ReloadHint> for ReloadHint
impl From<ReloadHint> for ReloadHint
Source§fn from(value: ReloadHint) -> Self
fn from(value: ReloadHint) -> Self
Converts to this type from the input type.
Source§impl Serialize for ReloadHint
impl Serialize for ReloadHint
impl Copy for ReloadHint
Auto Trait Implementations§
impl Freeze for ReloadHint
impl RefUnwindSafe for ReloadHint
impl Send for ReloadHint
impl Sync for ReloadHint
impl Unpin for ReloadHint
impl UnsafeUnpin for ReloadHint
impl UnwindSafe for ReloadHint
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