pub struct DevServerConfig { /* private fields */ }Expand description
Configuration for starting a live hot-reload and v1 OTA development server.
Implementations§
Source§impl DevServerConfig
impl DevServerConfig
pub fn get_target(&self) -> DevTargetArg
pub fn get_mut_target(&mut self) -> &mut DevTargetArg
pub fn set_target(&mut self, val: DevTargetArg) -> &mut Self
pub fn get_render(&self) -> RenderArg
pub fn get_mut_render(&mut self) -> &mut RenderArg
pub fn set_render(&mut self, val: RenderArg) -> &mut Self
pub fn get_release(&self) -> bool
pub fn get_mut_release(&mut self) -> &mut bool
pub fn set_release(&mut self, val: bool) -> &mut Self
pub fn get_src_dir(&self) -> &PathBuf
pub fn get_mut_src_dir(&mut self) -> &mut PathBuf
pub fn set_src_dir(&mut self, val: PathBuf) -> &mut Self
pub fn get_out_dir(&self) -> &PathBuf
pub fn get_mut_out_dir(&mut self) -> &mut PathBuf
pub fn set_out_dir(&mut self, val: PathBuf) -> &mut Self
pub fn get_title(&self) -> String
pub fn try_get_title(&self) -> &Option<String>
pub fn get_mut_title(&mut self) -> &mut Option<String>
pub fn set_title(&mut self, val: Option<String>) -> &mut Self
pub fn get_base_url(&self) -> &String
pub fn get_mut_base_url(&mut self) -> &mut String
pub fn set_base_url(&mut self, val: String) -> &mut Self
pub fn get_package(&self) -> String
pub fn try_get_package(&self) -> &Option<String>
pub fn get_mut_package(&mut self) -> &mut Option<String>
pub fn set_package(&mut self, val: Option<String>) -> &mut Self
pub fn get_host(&self) -> &String
pub fn get_mut_host(&mut self) -> &mut String
pub fn set_host(&mut self, val: String) -> &mut Self
pub fn get_port(&self) -> u16
pub fn get_mut_port(&mut self) -> &mut u16
pub fn set_port(&mut self, val: u16) -> &mut Self
pub fn get_poll_ms(&self) -> u64
pub fn get_mut_poll_ms(&mut self) -> &mut u64
pub fn set_poll_ms(&mut self, val: u64) -> &mut Self
pub fn get_enable_ota(&self) -> bool
pub fn get_mut_enable_ota(&mut self) -> &mut bool
pub fn set_enable_ota(&mut self, val: bool) -> &mut Self
pub fn get_once(&self) -> bool
pub fn get_mut_once(&mut self) -> &mut bool
pub fn set_once(&mut self, val: bool) -> &mut Self
pub fn get_hot_ota(&self) -> bool
pub fn get_mut_hot_ota(&mut self) -> &mut bool
pub fn set_hot_ota(&mut self, val: bool) -> &mut Self
pub fn get_watch_ota_path(&self) -> PathBuf
pub fn try_get_watch_ota_path(&self) -> &Option<PathBuf>
pub fn get_mut_watch_ota_path(&mut self) -> &mut Option<PathBuf>
pub fn set_watch_ota_path(&mut self, val: Option<PathBuf>) -> &mut Self
pub fn get_ota_store_dir(&self) -> PathBuf
pub fn try_get_ota_store_dir(&self) -> &Option<PathBuf>
pub fn get_mut_ota_store_dir(&mut self) -> &mut Option<PathBuf>
pub fn set_ota_store_dir(&mut self, val: Option<PathBuf>) -> &mut Self
pub fn get_ota_project(&self) -> &String
pub fn get_mut_ota_project(&mut self) -> &mut String
pub fn set_ota_project(&mut self, val: String) -> &mut Self
pub fn get_ota_channel(&self) -> &String
pub fn get_mut_ota_channel(&mut self) -> &mut String
pub fn set_ota_channel(&mut self, val: String) -> &mut Self
pub fn get_ota_signing_key(&self) -> &String
pub fn get_mut_ota_signing_key(&mut self) -> &mut String
pub fn set_ota_signing_key(&mut self, val: String) -> &mut Self
pub fn get_ota_route(&self) -> String
pub fn try_get_ota_route(&self) -> &Option<String>
pub fn get_mut_ota_route(&mut self) -> &mut Option<String>
pub fn set_ota_route(&mut self, val: Option<String>) -> &mut Self
pub fn get_ota_slot(&self) -> String
pub fn try_get_ota_slot(&self) -> &Option<String>
pub fn get_mut_ota_slot(&mut self) -> &mut Option<String>
pub fn set_ota_slot(&mut self, val: Option<String>) -> &mut Self
pub fn get_debounce_ms(&self) -> u64
pub fn get_mut_debounce_ms(&mut self) -> &mut u64
pub fn set_debounce_ms(&mut self, val: u64) -> &mut Self
pub fn get_coop_coep(&self) -> bool
pub fn get_mut_coop_coep(&mut self) -> &mut bool
pub fn set_coop_coep(&mut self, val: bool) -> &mut Self
pub fn get_spa_fallback(&self) -> bool
pub fn get_mut_spa_fallback(&mut self) -> &mut bool
pub fn set_spa_fallback(&mut self, val: bool) -> &mut Self
Trait Implementations§
Source§impl Clone for DevServerConfig
impl Clone for DevServerConfig
Source§impl Debug for DevServerConfig
impl Debug for DevServerConfig
Source§impl Default for DevServerConfig
Default dev server configuration targeting local Web development with OTA enabled.
impl Default for DevServerConfig
Default dev server configuration targeting local Web development with OTA enabled.
Source§impl<'de> Deserialize<'de> for DevServerConfig
impl<'de> Deserialize<'de> for DevServerConfig
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
impl Eq for DevServerConfig
Source§impl PartialEq for DevServerConfig
impl PartialEq for DevServerConfig
Source§impl Serialize for DevServerConfig
impl Serialize for DevServerConfig
impl StructuralPartialEq for DevServerConfig
Auto Trait Implementations§
impl Forget for DevServerConfig
impl Freeze for DevServerConfig
impl Move for DevServerConfig
impl RefUnwindSafe for DevServerConfig
impl Send for DevServerConfigwhere
RawVecInner: Send,
impl Sync for DevServerConfigwhere
RawVecInner: Sync,
impl Unpin for DevServerConfig
impl UnsafeUnpin for DevServerConfig
impl UnwindSafe for DevServerConfigwhere
RawVecInner: UnwindSafe,
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more