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