Struct rubble::att::server::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

Process a message sent to the protocol. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.