pub struct Builder<R: Runtime> { /* private fields */ }Expand description
Builder for the Valtio plugin.
Implementations§
Source§impl<R: Runtime> Builder<R>
impl<R: Runtime> Builder<R>
Sourcepub fn default_save_strategy(self, strategy: SaveStrategy) -> Self
pub fn default_save_strategy(self, strategy: SaveStrategy) -> Self
Sets the default save strategy to be used by the stores.
Sourcepub fn save_denylist(self, denylist: &[impl AsRef<str>]) -> Self
pub fn save_denylist(self, denylist: &[impl AsRef<str>]) -> Self
Sets a list of stores that should not be saved to disk.
Sourcepub fn sync_denylist(self, denylist: &[impl AsRef<str>]) -> Self
pub fn sync_denylist(self, denylist: &[impl AsRef<str>]) -> Self
Sets a list of stores that should not be synchronized across windows.
Trait Implementations§
Auto Trait Implementations§
impl<R> Freeze for Builder<R>
impl<R> !RefUnwindSafe for Builder<R>
impl<R> Send for Builder<R>
impl<R> Sync for Builder<R>
impl<R> Unpin for Builder<R>
impl<R> !UnwindSafe for Builder<R>
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