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 · 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
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 PartialEq for WriteFileSyncOptions
impl PartialEq for WriteFileSyncOptions
Source§impl RefFromWasmAbi for WriteFileSyncOptions
impl RefFromWasmAbi for WriteFileSyncOptions
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 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 VectorIntoJsValue for WriteFileSyncOptions
impl VectorIntoJsValue for WriteFileSyncOptions
fn vector_into_jsvalue(vector: Box<[WriteFileSyncOptions]>) -> JsValue
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
impl Eq for WriteFileSyncOptions
impl StructuralPartialEq for WriteFileSyncOptions
impl SupportsConstructor for WriteFileSyncOptions
impl SupportsInstanceProperty for WriteFileSyncOptions
impl SupportsStaticProperty 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 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::Abi
Source§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
.