Enum web_sys::UsbEndpointType
source · [−]pub enum UsbEndpointType {
Bulk,
Interrupt,
Isochronous,
// some variants omitted
}
Expand description
The UsbEndpointType
enum.
This API requires the following crate features to be activated: UsbEndpointType
This API is unstable and requires --cfg=web_sys_unstable_apis
to be activated, as
described in the wasm-bindgen
guide
Variants
Bulk
Interrupt
Isochronous
Implementations
sourceimpl UsbEndpointType
impl UsbEndpointType
pub fn from_js_value(obj: &JsValue) -> Option<UsbEndpointType>
Trait Implementations
sourceimpl Clone for UsbEndpointType
impl Clone for UsbEndpointType
sourcefn clone(&self) -> UsbEndpointType
fn clone(&self) -> UsbEndpointType
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 UsbEndpointType
impl Debug for UsbEndpointType
sourceimpl From<UsbEndpointType> for JsValue
impl From<UsbEndpointType> for JsValue
sourcefn from(obj: UsbEndpointType) -> JsValue
fn from(obj: UsbEndpointType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for UsbEndpointType
impl FromWasmAbi for UsbEndpointType
sourceimpl IntoWasmAbi for UsbEndpointType
impl IntoWasmAbi for UsbEndpointType
sourceimpl OptionFromWasmAbi for UsbEndpointType
impl OptionFromWasmAbi for UsbEndpointType
sourceimpl OptionIntoWasmAbi for UsbEndpointType
impl OptionIntoWasmAbi for UsbEndpointType
sourceimpl PartialEq<UsbEndpointType> for UsbEndpointType
impl PartialEq<UsbEndpointType> for UsbEndpointType
sourcefn eq(&self, other: &UsbEndpointType) -> bool
fn eq(&self, other: &UsbEndpointType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl WasmDescribe for UsbEndpointType
impl WasmDescribe for UsbEndpointType
impl Copy for UsbEndpointType
impl Eq for UsbEndpointType
impl StructuralEq for UsbEndpointType
impl StructuralPartialEq for UsbEndpointType
Auto Trait Implementations
impl RefUnwindSafe for UsbEndpointType
impl Send for UsbEndpointType
impl Sync for UsbEndpointType
impl Unpin for UsbEndpointType
impl UnwindSafe for UsbEndpointType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
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