pub enum PlatformConfig {
Default,
MacOs(MacOsConfig),
Windows(WindowsConfig),
Linux(LinuxConfig),
}Expand description
Platform-specific escape hatches. Use PlatformConfig::Default for the common case.
Variants§
Default
Auto-detect the platform and apply sensible defaults: no wrapping-key user-presence, no keychain access group, standard keys directory.
MacOs(MacOsConfig)
macOS-specific overrides. See MacOsConfig.
Windows(WindowsConfig)
Windows-specific overrides. See WindowsConfig.
Linux(LinuxConfig)
Linux-specific overrides. See LinuxConfig.
Trait Implementations§
Source§impl Clone for PlatformConfig
impl Clone for PlatformConfig
Source§fn clone(&self) -> PlatformConfig
fn clone(&self) -> PlatformConfig
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 PlatformConfig
impl Debug for PlatformConfig
Source§impl Default for PlatformConfig
impl Default for PlatformConfig
Source§fn default() -> PlatformConfig
fn default() -> PlatformConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PlatformConfig
impl RefUnwindSafe for PlatformConfig
impl Send for PlatformConfig
impl Sync for PlatformConfig
impl Unpin for PlatformConfig
impl UnsafeUnpin for PlatformConfig
impl UnwindSafe for PlatformConfig
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