pub enum SetResponseExpectedError {
InvalidFunctionId(u8),
IsAlwaysTrue(u8),
}
Expand description
This error is returned if the response expected status of a function could not be changed.
Variants§
InvalidFunctionId(u8)
The function id was unknown. Maybe the wrong UID was used?
IsAlwaysTrue(u8)
This function must always respond, as the response contains result data.
Trait Implementations§
source§impl Clone for SetResponseExpectedError
impl Clone for SetResponseExpectedError
source§fn clone(&self) -> SetResponseExpectedError
fn clone(&self) -> SetResponseExpectedError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetResponseExpectedError
impl Debug for SetResponseExpectedError
source§impl Display for SetResponseExpectedError
impl Display for SetResponseExpectedError
source§impl Error for SetResponseExpectedError
impl Error for SetResponseExpectedError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
impl Copy for SetResponseExpectedError
Auto Trait Implementations§
impl RefUnwindSafe for SetResponseExpectedError
impl Send for SetResponseExpectedError
impl Sync for SetResponseExpectedError
impl Unpin for SetResponseExpectedError
impl UnwindSafe for SetResponseExpectedError
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