pub enum ReloadAction {
Swap {
route_id: String,
},
Restart {
route_id: String,
},
Add {
route_id: String,
},
Remove {
route_id: String,
},
}Expand description
Actions the coordinator can take per route.
Variants§
Swap
Pipeline may have changed — atomic swap (zero-downtime).
This action is taken when the route exists and from_uri is unchanged.
Even if the pipeline is identical, swapping is harmless (atomic pointer swap).
Restart
Consumer (from_uri) changed — must stop and restart.
Add
New route — add and start.
Remove
Route removed from config — stop and delete.
Trait Implementations§
Source§impl Clone for ReloadAction
impl Clone for ReloadAction
Source§fn clone(&self) -> ReloadAction
fn clone(&self) -> ReloadAction
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 ReloadAction
impl Debug for ReloadAction
Source§impl PartialEq for ReloadAction
impl PartialEq for ReloadAction
impl StructuralPartialEq for ReloadAction
Auto Trait Implementations§
impl Freeze for ReloadAction
impl RefUnwindSafe for ReloadAction
impl Send for ReloadAction
impl Sync for ReloadAction
impl Unpin for ReloadAction
impl UnsafeUnpin for ReloadAction
impl UnwindSafe for ReloadAction
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