pub struct RegisterHandler<B> { /* private fields */ }
Expand description

Handles access requests for registers

Basic steps:

  1. Create a register block (this may be a tuple of Registers or a custom type that implements RegisterBlock)
  2. Create a handler using RegisterHandler::init. Pass the register block and a node used to receive service requests
  3. When calling accept on the node, pass the register handler as a transfer handler (or use some other method to pass incoming service requests to the register handler). This lets the register handler process requests and send responses.

Implementations

Creates a register handler

Subscribes to register list and register access requests

This function returns an error if the provided node does not have enough space to listen for requests.

Returns a reference to the register block

This can be used to read the current values.

Returns a mutable reference to the register block

This can be used to write the register values.

Trait Implementations

Potentially handles an incoming service request Read more

Potentially handles an incoming message transfer Read more

Potentially handles an incoming service response Read more

Chains another handler after this handler and returns the combined handler 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.