pub enum WriteType {
WithResponse,
WithoutResponse,
Reliable,
}
Expand description
The type of write operation to use.
Variants§
WithResponse
A write operation where the device is expected to respond with a confirmation or error. Also
known as a request. This corresponds to
CharacteristicFlags
::WRITE
.
WithoutResponse
A write-without-response, also known as a command. This corresponds to
CharacteristicFlags
::WRITE_WITHOUT_RESPONSE
.
Reliable
A reliable write. This corresponds to
CharacteristicFlags
::RELIABLE_WRITE
.
Trait Implementations§
impl Copy for WriteType
impl Eq for WriteType
impl StructuralPartialEq for WriteType
Auto Trait Implementations§
impl Freeze for WriteType
impl RefUnwindSafe for WriteType
impl Send for WriteType
impl Sync for WriteType
impl Unpin for WriteType
impl UnwindSafe for WriteType
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