pub struct WriteFileSyncOptions { /* private fields */ }Implementations§
Source§impl WriteFileSyncOptions
impl WriteFileSyncOptions
pub fn new( encoding: Option<JsString>, flag: Option<JsString>, mode: Option<u32>, ) -> WriteFileSyncOptions
pub fn encoding(&self) -> Option<JsString>
pub fn set_encoding(&mut self, value: Option<JsString>)
pub fn flag(&self) -> Option<JsString>
pub fn set_flag(&mut self, value: Option<JsString>)
pub fn mode(&self) -> Option<u32>
pub fn set_mode(&mut self, value: Option<u32>)
Trait Implementations§
Source§impl Clone for WriteFileSyncOptions
impl Clone for WriteFileSyncOptions
Source§fn clone(&self) -> WriteFileSyncOptions
fn clone(&self) -> WriteFileSyncOptions
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 WriteFileSyncOptions
impl Debug for WriteFileSyncOptions
Source§impl Default for WriteFileSyncOptions
impl Default for WriteFileSyncOptions
Source§fn default() -> WriteFileSyncOptions
fn default() -> WriteFileSyncOptions
Returns the “default value” for a type. Read more
impl Eq for WriteFileSyncOptions
Source§impl From<WriteFileSyncOptions> for JsValue
impl From<WriteFileSyncOptions> for JsValue
Source§fn from(value: WriteFileSyncOptions) -> Self
fn from(value: WriteFileSyncOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for WriteFileSyncOptions
impl FromWasmAbi for WriteFileSyncOptions
Source§impl IntoWasmAbi for WriteFileSyncOptions
impl IntoWasmAbi for WriteFileSyncOptions
Source§impl LongRefFromWasmAbi for WriteFileSyncOptions
impl LongRefFromWasmAbi for WriteFileSyncOptions
Source§type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<WriteFileSyncOptions>
type Anchor = RcRef<WriteFileSyncOptions>
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 WriteFileSyncOptions
impl PartialEq for WriteFileSyncOptions
Source§fn eq(&self, other: &WriteFileSyncOptions) -> bool
fn eq(&self, other: &WriteFileSyncOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefFromWasmAbi for WriteFileSyncOptions
impl RefFromWasmAbi for WriteFileSyncOptions
Source§type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<WriteFileSyncOptions>
type Anchor = RcRef<WriteFileSyncOptions>
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 WriteFileSyncOptions
impl RefMutFromWasmAbi for WriteFileSyncOptions
Source§type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
type Abi = WasmPtr<WasmRefCell<WriteFileSyncOptions>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<WriteFileSyncOptions>
type Anchor = RcRefMut<WriteFileSyncOptions>
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 WriteFileSyncOptions
impl SupportsConstructor for WriteFileSyncOptions
impl SupportsInstanceProperty for WriteFileSyncOptions
impl SupportsStaticProperty for WriteFileSyncOptions
Source§impl VectorFromWasmAbi for WriteFileSyncOptions
impl VectorFromWasmAbi for WriteFileSyncOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[WriteFileSyncOptions]>
Source§impl VectorIntoWasmAbi for WriteFileSyncOptions
impl VectorIntoWasmAbi for WriteFileSyncOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[WriteFileSyncOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for WriteFileSyncOptions
impl WasmDescribeVector for WriteFileSyncOptions
Auto Trait Implementations§
impl Freeze for WriteFileSyncOptions
impl RefUnwindSafe for WriteFileSyncOptions
impl Send for WriteFileSyncOptions
impl Sync for WriteFileSyncOptions
impl Unpin for WriteFileSyncOptions
impl UnsafeUnpin for WriteFileSyncOptions
impl UnwindSafe for WriteFileSyncOptions
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.