pub enum ReloadHint {
None,
Reload,
Restart,
}Expand description
How much of the server needs to restart after a config change.
§Why this type also lives in apimock-config
The config crate defines the same ReloadHint enum as its
view::ReloadHint because it’s what an ApplyResult carries — the
GUI consumes the hint via the config-layer API without pulling the
server crate. The server’s copy exists so that runtime code can
also produce hints without depending on the config crate’s
GUI-shaped module. Both types convert into each other trivially.
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