pub struct GetNameOptions { /* private fields */ }
Implementations§
Source§impl GetNameOptions
impl GetNameOptions
pub fn new( family: Option<u8>, host: JsString, local_address: JsString, port: u32, ) -> GetNameOptions
pub fn family(&self) -> Option<u8>
pub fn set_family(&mut self, value: Option<u8>)
pub fn host(&self) -> JsString
pub fn set_host(&mut self, value: JsString)
pub fn local_address(&self) -> JsString
pub fn set_local_address(&mut self, value: JsString)
pub fn port(&self) -> u32
pub fn set_port(&mut self, value: u32)
Trait Implementations§
Source§impl Clone for GetNameOptions
impl Clone for GetNameOptions
Source§fn clone(&self) -> GetNameOptions
fn clone(&self) -> GetNameOptions
Returns a copy 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 GetNameOptions
impl Debug for GetNameOptions
Source§impl From<GetNameOptions> for JsValue
impl From<GetNameOptions> for JsValue
Source§fn from(value: GetNameOptions) -> Self
fn from(value: GetNameOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for GetNameOptions
impl FromWasmAbi for GetNameOptions
Source§impl IntoWasmAbi for GetNameOptions
impl IntoWasmAbi for GetNameOptions
Source§impl LongRefFromWasmAbi for GetNameOptions
impl LongRefFromWasmAbi for GetNameOptions
Source§impl OptionFromWasmAbi for GetNameOptions
impl OptionFromWasmAbi for GetNameOptions
Source§impl OptionIntoWasmAbi for GetNameOptions
impl OptionIntoWasmAbi for GetNameOptions
Source§impl PartialEq for GetNameOptions
impl PartialEq for GetNameOptions
Source§impl RefFromWasmAbi for GetNameOptions
impl RefFromWasmAbi for GetNameOptions
Source§type Anchor = RcRef<GetNameOptions>
type Anchor = RcRef<GetNameOptions>
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 GetNameOptions
impl RefMutFromWasmAbi for GetNameOptions
Source§impl TryFromJsValue for GetNameOptions
impl TryFromJsValue for GetNameOptions
Source§impl VectorFromWasmAbi for GetNameOptions
impl VectorFromWasmAbi for GetNameOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[GetNameOptions]>
Source§impl VectorIntoJsValue for GetNameOptions
impl VectorIntoJsValue for GetNameOptions
fn vector_into_jsvalue(vector: Box<[GetNameOptions]>) -> JsValue
Source§impl VectorIntoWasmAbi for GetNameOptions
impl VectorIntoWasmAbi for GetNameOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[GetNameOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for GetNameOptions
impl WasmDescribeVector for GetNameOptions
impl Eq for GetNameOptions
impl StructuralPartialEq for GetNameOptions
impl SupportsConstructor for GetNameOptions
impl SupportsInstanceProperty for GetNameOptions
impl SupportsStaticProperty for GetNameOptions
Auto Trait Implementations§
impl Freeze for GetNameOptions
impl RefUnwindSafe for GetNameOptions
impl !Send for GetNameOptions
impl !Sync for GetNameOptions
impl Unpin for GetNameOptions
impl UnwindSafe for GetNameOptions
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
.