Struct rubble::att::AttributeServer [−][src]
pub struct AttributeServer<A: AttributeProvider> {
attrs: A,
}
Expand description
An Attribute Protocol server providing read and write access to stored attributes.
Fields
attrs: A
Implementations
Creates an AttributeServer
hosting attributes from an AttributeProvider
.
Prepares for performing a server-initiated action (eg. sending a notification/indication).
The caller must ensure that sender
has at least RSP_PDU_SIZE
bytes of free space
available.
It is usually not necessary to use this function. Instead, call L2CAPStateTx::att
.
Provides mutable access to the underlying AttributeProvider
.
Returns the ATT_MTU
value, the maximum size of an ATT PDU that can be processed and sent
out by the server.
Process an incoming request (or command) PDU and return a response.
This may return an AttError
, which the caller will then send as a response. In the success
case, this method will send the response (if any).
Trait Implementations
Minimum size needed by PDUs sent by this protocol. Read more