Enum rubble::att::pdus::AttPdu [−][src]
pub enum AttPdu<'a> {
Show 29 variants
ErrorRsp {
opcode: Opcode,
handle: Handle,
error_code: ErrorCode,
},
ExchangeMtuReq {
mtu: u16,
},
ExchangeMtuRsp {
mtu: u16,
},
FindInformationReq {
handle_range: RawHandleRange,
},
FindInformationRsp {
format: u8,
data: HexSlice<&'a [u8]>,
},
FindByTypeValueReq {
handle_range: RawHandleRange,
attribute_type: u16,
attribute_value: HexSlice<&'a [u8]>,
},
FindByTypeValueRsp {
handles_information_list: HexSlice<&'a [u8]>,
},
ReadByTypeReq {
handle_range: RawHandleRange,
attribute_type: AttUuid,
},
ReadByTypeRsp {
length: u8,
data_list: HexSlice<&'a [u8]>,
},
ReadReq {
handle: Handle,
},
ReadRsp {
value: HexSlice<&'a [u8]>,
},
ReadBlobReq {
handle: Handle,
offset: u16,
},
ReadBlobRsp {
value: HexSlice<&'a [u8]>,
},
ReadMultipleReq {
handles: HexSlice<&'a [u8]>,
},
ReadMultipleRsp {
values: HexSlice<&'a [u8]>,
},
ReadByGroupReq {
handle_range: RawHandleRange,
group_type: AttUuid,
},
ReadByGroupRsp {
length: u8,
data_list: HexSlice<&'a [u8]>,
},
WriteReq {
handle: Handle,
value: HexSlice<&'a [u8]>,
},
WriteRsp,
WriteCommand {
handle: Handle,
value: HexSlice<&'a [u8]>,
},
SignedWriteCommand {
handle: Handle,
value: HexSlice<&'a [u8]>,
signature: HexSlice<&'a [u8; 12]>,
},
PrepareWriteReq {
handle: Handle,
offset: u16,
value: HexSlice<&'a [u8]>,
},
PrepareWriteRsp {
handle: Handle,
offset: u16,
value: HexSlice<&'a [u8]>,
},
ExecuteWriteReq {
flags: u8,
},
ExecuteWriteRsp,
HandleValueNotification {
handle: Handle,
value: HexSlice<&'a [u8]>,
},
HandleValueIndication {
handle: Handle,
value: HexSlice<&'a [u8]>,
},
HandleValueConfirmation,
Unknown {
opcode: Opcode,
params: HexSlice<&'a [u8]>,
},
}
Expand description
Structured representation of an ATT message (request or response).
Note that many responses will need their own type that wraps an iterator.
Variants
Request could not be completed due to an error.
Fields of ErrorRsp
Fields of ExchangeMtuReq
mtu: u16
Fields of ExchangeMtuRsp
mtu: u16
Used to obtain mapping of attribute handles and their types
Fields of FindInformationReq
handle_range: RawHandleRange
Fields of FindInformationRsp
Used to obtain the handles of attributes with a given type and value.
Fields of FindByTypeValueReq
Fields of FindByTypeValueRsp
Fields of ReadByTypeReq
Fields of ReadByTypeRsp
Fields of ReadReq
handle: Handle
Fields of ReadByGroupReq
handle_range: RawHandleRange
group_type: AttUuid
Fields of SignedWriteCommand
Fields of ExecuteWriteReq
flags: u8
0x00 – Cancel all prepared writes 0x01 – Immediately write all pending prepared values
Attribute value change notification sent from server to client.
Not acknowledged by client.
Attribute value change indication sent by server, acknowledged by client.
Confirmation returned by client in response to a HandleValueIndication
.
Implementations
Trait Implementations
Decode a Self
from a byte slice, advancing bytes
to point past the data that was read. Read more