[−][src]Struct rusb::GlobalContext
Trait Implementations
impl Clone for GlobalContext
[src]
fn clone(&self) -> GlobalContext
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GlobalContext
[src]
impl Default for GlobalContext
[src]
fn default() -> GlobalContext
[src]
impl Eq for GlobalContext
[src]
impl PartialEq<GlobalContext> for GlobalContext
[src]
fn eq(&self, other: &GlobalContext) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for GlobalContext
[src]
impl StructuralPartialEq for GlobalContext
[src]
impl UsbContext for GlobalContext
[src]
fn as_raw(&self) -> *mut libusb_context
[src]
fn devices(&self) -> Result<DeviceList<Self>>
[src]
fn open_device_with_vid_pid(
&self,
vendor_id: u16,
product_id: u16
) -> Option<DeviceHandle<Self>>
[src]
&self,
vendor_id: u16,
product_id: u16
) -> Option<DeviceHandle<Self>>
fn set_log_level(&mut self, level: LogLevel)
[src]
fn register_callback(
&self,
vendor_id: Option<u16>,
product_id: Option<u16>,
class: Option<u8>,
callback: Box<dyn Hotplug<Self>>
) -> Result<Registration>
[src]
&self,
vendor_id: Option<u16>,
product_id: Option<u16>,
class: Option<u8>,
callback: Box<dyn Hotplug<Self>>
) -> Result<Registration>
fn unregister_callback(&self, reg: Registration)
[src]
fn handle_events(&self, timeout: Option<Duration>) -> Result<()>
[src]
Auto Trait Implementations
impl RefUnwindSafe for GlobalContext
impl Send for GlobalContext
impl Sync for GlobalContext
impl Unpin for GlobalContext
impl UnwindSafe for GlobalContext
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,