Struct bluenrg::event::AttPrepareWritePermitRequest[][src]

pub struct AttPrepareWritePermitRequest {
    pub conn_handle: ConnectionHandle,
    pub attribute_handle: AttributeHandle,
    pub offset: usize,
    // some fields omitted
}

This event is given to the application when a prepare write request is received by the server from the client.

This event will be given to the application only if the event bit for this event generation is set when the characteristic was added. When this event is received, the application has to check whether the value being requested for write is allowed to be written and respond with the command gatt_write_response. Based on the response from the application, the attribute value will be modified by the stack. If the write is rejected by the application, then the value of the attribute will not be modified and an error response will be sent to the client, with the error code as specified by the application.

Fields

Connection handle on which the GATT procedure is running.

The handle of the attribute to be written.

The offset of the first octet to be written.

Methods

impl AttPrepareWritePermitRequest
[src]

Returns the data to be written.

Trait Implementations

impl Copy for AttPrepareWritePermitRequest
[src]

impl Clone for AttPrepareWritePermitRequest
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AttPrepareWritePermitRequest
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations