pub struct HostConfig {
pub app_id: String,
pub tray: bool,
pub tray_tooltip: String,
pub close_to_tray: bool,
pub single_instance: bool,
pub window_state: bool,
}Expand description
Host-level product configuration.
In Phase 4 this is generated from the app manifest (ADR-0011); until then products construct it by hand.
Fields§
§app_id: StringReverse-DNS product id, e.g. dev.origin.demo. Also scopes credentials in the
system keychain, so two Origin apps cannot read each other’s tokens.
tray: bool§tray_tooltip: String§close_to_tray: boolClosing the last window hides the app instead of quitting it.
single_instance: bool§window_state: boolImplementations§
Trait Implementations§
Source§impl Clone for HostConfig
impl Clone for HostConfig
Source§fn clone(&self) -> HostConfig
fn clone(&self) -> HostConfig
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 moreAuto Trait Implementations§
impl Freeze for HostConfig
impl RefUnwindSafe for HostConfig
impl Send for HostConfig
impl Sync for HostConfig
impl Unpin for HostConfig
impl UnsafeUnpin for HostConfig
impl UnwindSafe for HostConfig
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