pub struct StateChangeError {
pub err: Error,
pub rf: HackRf,
}Expand description
An error from trying to change HackRF states and failing.
Always contains the HackRF instance, but in an unknown state. To try and
return to a known state, try calling HackRf::turn_off.
Fields§
§err: ErrorThe error that occurred while trying to change state.
rf: HackRfThe HackRF instance.
Trait Implementations§
Source§impl Debug for StateChangeError
impl Debug for StateChangeError
Source§impl Display for StateChangeError
impl Display for StateChangeError
Source§impl Error for StateChangeError
impl Error for StateChangeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for StateChangeError
impl !RefUnwindSafe for StateChangeError
impl Send for StateChangeError
impl !Sync for StateChangeError
impl Unpin for StateChangeError
impl !UnwindSafe for StateChangeError
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