pub struct SetLoginItemSettings { /* private fields */ }Implementations§
Source§impl SetLoginItemSettings
impl SetLoginItemSettings
pub fn new( open_at_login: Option<bool>, open_as_hidden: Option<bool>, path: Option<JsString>, args: JsString, ) -> SetLoginItemSettings
pub fn open_at_login(&self) -> Option<bool>
pub fn set_open_at_login(&mut self, value: Option<bool>)
pub fn path(&self) -> Option<JsString>
pub fn set_path(&mut self, value: Option<JsString>)
pub fn args(&self) -> JsString
pub fn set_args(&mut self, value: JsString)
Trait Implementations§
Source§impl Clone for SetLoginItemSettings
impl Clone for SetLoginItemSettings
Source§fn clone(&self) -> SetLoginItemSettings
fn clone(&self) -> SetLoginItemSettings
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 SetLoginItemSettings
impl Debug for SetLoginItemSettings
Source§impl From<SetLoginItemSettings> for JsValue
impl From<SetLoginItemSettings> for JsValue
Source§fn from(value: SetLoginItemSettings) -> Self
fn from(value: SetLoginItemSettings) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for SetLoginItemSettings
impl FromWasmAbi for SetLoginItemSettings
Source§impl IntoWasmAbi for SetLoginItemSettings
impl IntoWasmAbi for SetLoginItemSettings
Source§impl LongRefFromWasmAbi for SetLoginItemSettings
impl LongRefFromWasmAbi for SetLoginItemSettings
Source§type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<SetLoginItemSettings>
type Anchor = RcRef<SetLoginItemSettings>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl PartialEq for SetLoginItemSettings
impl PartialEq for SetLoginItemSettings
Source§fn eq(&self, other: &SetLoginItemSettings) -> bool
fn eq(&self, other: &SetLoginItemSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for SetLoginItemSettings
impl RefFromWasmAbi for SetLoginItemSettings
Source§type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<SetLoginItemSettings>
type Anchor = RcRef<SetLoginItemSettings>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for SetLoginItemSettings
impl RefMutFromWasmAbi for SetLoginItemSettings
Source§type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
type Abi = WasmPtr<WasmRefCell<SetLoginItemSettings>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<SetLoginItemSettings>
type Anchor = RcRefMut<SetLoginItemSettings>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiimpl StructuralPartialEq for SetLoginItemSettings
impl SupportsConstructor for SetLoginItemSettings
impl SupportsInstanceProperty for SetLoginItemSettings
impl SupportsStaticProperty for SetLoginItemSettings
Source§impl VectorFromWasmAbi for SetLoginItemSettings
impl VectorFromWasmAbi for SetLoginItemSettings
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[SetLoginItemSettings]>
Source§impl VectorIntoWasmAbi for SetLoginItemSettings
impl VectorIntoWasmAbi for SetLoginItemSettings
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[SetLoginItemSettings]>) -> Self::Abi
Source§impl WasmDescribeVector for SetLoginItemSettings
impl WasmDescribeVector for SetLoginItemSettings
Auto Trait Implementations§
impl Freeze for SetLoginItemSettings
impl RefUnwindSafe for SetLoginItemSettings
impl Send for SetLoginItemSettings
impl Sync for SetLoginItemSettings
impl Unpin for SetLoginItemSettings
impl UnsafeUnpin for SetLoginItemSettings
impl UnwindSafe for SetLoginItemSettings
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.