#[non_exhaustive]pub struct ControllerState {
pub fabrics: Vec<FabricEntry>,
}Expand description
The full controller state: all administered fabrics.
#[non_exhaustive]: the persisted top-level record may gain fields (e.g.
schema version, controller-wide settings); marking it keeps such additions
non-breaking. Construct via ControllerState::new or
ControllerState::default from outside this crate.
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.fabrics: Vec<FabricEntry>Fabrics this controller administers.
Implementations§
Source§impl ControllerState
impl ControllerState
Sourcepub fn new(fabrics: Vec<FabricEntry>) -> Self
pub fn new(fabrics: Vec<FabricEntry>) -> Self
Construct controller state from a list of administered fabrics.
Supported construction path now that ControllerState is
#[non_exhaustive]; the fabrics field stays directly accessible.
Trait Implementations§
Source§impl Clone for ControllerState
impl Clone for ControllerState
Source§fn clone(&self) -> ControllerState
fn clone(&self) -> ControllerState
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 ControllerState
impl Debug for ControllerState
Source§impl Default for ControllerState
impl Default for ControllerState
Source§fn default() -> ControllerState
fn default() -> ControllerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ControllerState
impl RefUnwindSafe for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Unpin for ControllerState
impl UnsafeUnpin for ControllerState
impl UnwindSafe for ControllerState
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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