pub enum BusyHandling {
Accept,
Retry,
}Expand description
How a device-specific driver interprets status 0x01.
Existing implementations disagree: OpenRazer accepts a valid busy response because some devices complete the operation anyway, while opsrzr resends the request. RazeRS makes that choice explicit so write commands are never retried accidentally.
如何解释忙碌状态 0x01 由设备驱动决定。OpenRazer 接受有效忙碌响应,opsrzr 则重发;RazeRS 显式保留这种选择,防止写命令被意外重试。
Variants§
Trait Implementations§
Source§impl Clone for BusyHandling
impl Clone for BusyHandling
Source§fn clone(&self) -> BusyHandling
fn clone(&self) -> BusyHandling
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 BusyHandling
Source§impl Debug for BusyHandling
impl Debug for BusyHandling
impl Eq for BusyHandling
Source§impl PartialEq for BusyHandling
impl PartialEq for BusyHandling
Source§fn eq(&self, other: &BusyHandling) -> bool
fn eq(&self, other: &BusyHandling) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BusyHandling
Auto Trait Implementations§
impl Freeze for BusyHandling
impl RefUnwindSafe for BusyHandling
impl Send for BusyHandling
impl Sync for BusyHandling
impl Unpin for BusyHandling
impl UnsafeUnpin for BusyHandling
impl UnwindSafe for BusyHandling
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