pub enum RtlsdrError {
LibusbError(LibusbError),
Unspecified(i32),
}Expand description
General error type for rtlsdr operations, which can be either a libusb error or some other unspecified error
Variants§
LibusbError(LibusbError)
Unspecified(i32)
Trait Implementations§
Source§impl Clone for RtlsdrError
impl Clone for RtlsdrError
Source§fn clone(&self) -> RtlsdrError
fn clone(&self) -> RtlsdrError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RtlsdrError
Source§impl Debug for RtlsdrError
impl Debug for RtlsdrError
impl Eq for RtlsdrError
Source§impl From<i32> for RtlsdrError
impl From<i32> for RtlsdrError
Source§impl PartialEq for RtlsdrError
impl PartialEq for RtlsdrError
Source§fn eq(&self, other: &RtlsdrError) -> bool
fn eq(&self, other: &RtlsdrError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RtlsdrError
Auto Trait Implementations§
impl Freeze for RtlsdrError
impl RefUnwindSafe for RtlsdrError
impl Send for RtlsdrError
impl Sync for RtlsdrError
impl Unpin for RtlsdrError
impl UnsafeUnpin for RtlsdrError
impl UnwindSafe for RtlsdrError
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