pub enum StateSurface {
None,
Keys(Vec<String>),
All,
}Expand description
State surface a component consumes through one hydration channel.
Variants§
None
The component is known not to consume state through this channel.
Keys(Vec<String>)
The component consumes only these sorted, deduplicated keys.
All
The complete surface is unknown, so callers must preserve full state.
Implementations§
Source§impl StateSurface
impl StateSurface
Sourcepub fn keys(keys: Vec<String>) -> Self
pub fn keys(keys: Vec<String>) -> Self
Create an exact keyed surface, collapsing an empty list to Self::None.
Trait Implementations§
Source§impl Clone for StateSurface
impl Clone for StateSurface
Source§fn clone(&self) -> StateSurface
fn clone(&self) -> StateSurface
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 StateSurface
impl Debug for StateSurface
impl Eq for StateSurface
Source§impl PartialEq for StateSurface
impl PartialEq for StateSurface
impl StructuralPartialEq for StateSurface
Auto Trait Implementations§
impl Freeze for StateSurface
impl RefUnwindSafe for StateSurface
impl Send for StateSurface
impl Sync for StateSurface
impl Unpin for StateSurface
impl UnsafeUnpin for StateSurface
impl UnwindSafe for StateSurface
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