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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for WriteOptions
impl PartialEq for WriteOptions
impl Copy for WriteOptions
impl Eq for WriteOptions
impl StructuralPartialEq for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnwindSafe for WriteOptions
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