Enum web_sys::UsbRequestType
source · [−]pub enum UsbRequestType {
Standard,
Class,
Vendor,
// some variants omitted
}
Expand description
The UsbRequestType
enum.
This API requires the following crate features to be activated: UsbRequestType
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Variants
Standard
Class
Vendor
Implementations
sourceimpl UsbRequestType
impl UsbRequestType
pub fn from_js_value(obj: &JsValue) -> Option<UsbRequestType>
Trait Implementations
sourceimpl Clone for UsbRequestType
impl Clone for UsbRequestType
sourcefn clone(&self) -> UsbRequestType
fn clone(&self) -> UsbRequestType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UsbRequestType
impl Debug for UsbRequestType
sourceimpl From<UsbRequestType> for JsValue
impl From<UsbRequestType> for JsValue
sourcefn from(obj: UsbRequestType) -> JsValue
fn from(obj: UsbRequestType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for UsbRequestType
impl FromWasmAbi for UsbRequestType
sourceimpl IntoWasmAbi for UsbRequestType
impl IntoWasmAbi for UsbRequestType
sourceimpl OptionFromWasmAbi for UsbRequestType
impl OptionFromWasmAbi for UsbRequestType
sourceimpl OptionIntoWasmAbi for UsbRequestType
impl OptionIntoWasmAbi for UsbRequestType
sourceimpl PartialEq<UsbRequestType> for UsbRequestType
impl PartialEq<UsbRequestType> for UsbRequestType
sourceimpl WasmDescribe for UsbRequestType
impl WasmDescribe for UsbRequestType
impl Copy for UsbRequestType
impl Eq for UsbRequestType
impl StructuralEq for UsbRequestType
impl StructuralPartialEq for UsbRequestType
Auto Trait Implementations
impl RefUnwindSafe for UsbRequestType
impl Send for UsbRequestType
impl Sync for UsbRequestType
impl Unpin for UsbRequestType
impl UnwindSafe for UsbRequestType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn 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
. Read more