Struct bluez_async::WriteOptions
source · pub struct WriteOptions {
pub offset: usize,
pub write_type: Option<WriteType>,
}
Expand description
A set of options for a characteristic write operation.
Fields§
§offset: usize
The starting offset of the write operation.
write_type: Option<WriteType>
The type of write operation to use.
Note that a given characteristic may not support all different types of write operations;
you can check with
CharacteristicInfo.flags
. The type of
write operation will also affect the maximum possible length of data which can be written in
a single operation.
Trait Implementations§
source§impl Clone for WriteOptions
impl Clone for WriteOptions
source§fn clone(&self) -> WriteOptions
fn clone(&self) -> WriteOptions
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 WriteOptions
impl Debug for WriteOptions
source§impl Default for WriteOptions
impl Default for WriteOptions
source§fn default() -> WriteOptions
fn default() -> WriteOptions
Returns the “default value” for a type. Read more
source§impl From<WriteOptions> for PropMap
impl From<WriteOptions> for PropMap
source§fn from(options: WriteOptions) -> Self
fn from(options: WriteOptions) -> Self
Converts to this type from the input type.
source§impl PartialEq<WriteOptions> for WriteOptions
impl PartialEq<WriteOptions> for WriteOptions
source§fn eq(&self, other: &WriteOptions) -> bool
fn eq(&self, other: &WriteOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.