#[non_exhaustive]pub struct ToggleBatch {
pub changing: Vec<String>,
pub already: Vec<String>,
pub loaders: Vec<String>,
pub enabled: bool,
}Expand description
What a bulk enable or disable will do.
Loaders are excluded rather than merely skipped. set_enabled_in already
no-ops a loader, so including one would be harmless, but it would be counted
as a mod the operation acted on and any summary built from this would overstate
what happened.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changing: Vec<String>Identifiers whose state will change, sorted.
already: Vec<String>Identifiers already in the requested state, sorted.
loaders: Vec<String>Recognised loaders, excluded from the toggle entirely, sorted.
enabled: boolThe sense this batch was planned for: true to enable, false to
disable. set_enabled_batch applies this instead of taking its own
enabled argument, so a caller cannot execute a batch against a sense it
was not planned for.
Trait Implementations§
Source§impl Clone for ToggleBatch
impl Clone for ToggleBatch
Source§impl Debug for ToggleBatch
impl Debug for ToggleBatch
Auto Trait Implementations§
impl Freeze for ToggleBatch
impl RefUnwindSafe for ToggleBatch
impl Send for ToggleBatch
impl Sync for ToggleBatch
impl Unpin for ToggleBatch
impl UnsafeUnpin for ToggleBatch
impl UnwindSafe for ToggleBatch
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