pub struct TauriConfig {
pub auto_start: bool,
pub stop_on_exit: bool,
pub server: ServerConfig,
}
Expand description
Configuration specific to using VscodeServerManager
within a Tauri application.
This struct wraps a ServerConfig
and adds Tauri-specific options like auto-starting
the server or stopping it on application exit.
Fields§
§auto_start: bool
If true
, the VSCode server will be automatically started after initialize
is called.
stop_on_exit: bool
If true
, the VSCode server will be automatically stopped when the TauriVscodeServer
instance (or its underlying VscodeServerManager
) is dropped. This is generally desired
for Tauri applications to clean up the server process on app exit.
server: ServerConfig
The underlying ServerConfig
to be used for the VSCode server instance.
Trait Implementations§
Source§impl Clone for TauriConfig
impl Clone for TauriConfig
Source§fn clone(&self) -> TauriConfig
fn clone(&self) -> TauriConfig
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 TauriConfig
impl Debug for TauriConfig
Source§impl Default for TauriConfig
Provides default settings for TauriConfig
.
impl Default for TauriConfig
Provides default settings for TauriConfig
.
auto_start
:true
stop_on_exit
:true
server
:ServerConfig::default()
Source§impl<'de> Deserialize<'de> for TauriConfig
impl<'de> Deserialize<'de> for TauriConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TauriConfig
impl RefUnwindSafe for TauriConfig
impl Send for TauriConfig
impl Sync for TauriConfig
impl Unpin for TauriConfig
impl UnwindSafe for TauriConfig
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