Skip to content

server

Modules

Structs

  • BrokerListener - Broker-side listener: accepts shim connections and dispatches requests.

firma_secret_provider::broker::server::BrokerListener

Section titled “firma_secret_provider::broker::server::BrokerListener”

Struct

Broker-side listener: accepts shim connections and dispatches requests.

Methods:

  • fn bind(endpoint: &ServerEndpoint, config: config::BrokerListenerConfig) -> io::Result<Self> - Bind a listener at endpoint with config.
  • fn bound_endpoint(self: &Self) -> io::Result<EndpointInner> - Return the address this listener is actually bound to.
  • fn accept_one<F>(self: &Self, handler: F) -> io::Result<()> - Accept one shim connection, invoke handler(request), and write the

Trait Implementations:

  • Drop
    • fn drop(self: & mut Self)