Skip to content

authority

Structs

Enums


firma_sidecar::config::authority::AuthorityConfig

Section titled “firma_sidecar::config::authority::AuthorityConfig”

Struct

Tuning for background Authority stream clients.

Fields:

  • url: Option<String> - Authority gRPC URL (e.g. https://127.0.0.1:9443). When set, the
  • connect_addr: Option<std::net::SocketAddr> - Optional physical TCP destination for the Authority connection.

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> AuthorityConfig
  • Deserialize
    • fn deserialize<__D>(__deserializer: __D) -> _serde::__private228::Result<Self, <__D as >::Error>
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Default
    • fn default() -> Self

firma_sidecar::config::authority::AuthorityEndpoint

Section titled “firma_sidecar::config::authority::AuthorityEndpoint”

Struct

A validated Authority destination.

The URI is the logical HTTP and TLS origin. The optional socket address is only the physical TCP route and does not change HTTP authority or TLS server-name verification.

Methods:

  • fn new(url: &str, connect_addr: Option<SocketAddr>) -> Result<Self, AuthorityEndpointError> - Validate and construct an Authority endpoint.

Traits: Eq

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> AuthorityEndpoint
  • PartialEq
    • fn eq(self: &Self, other: &AuthorityEndpoint) -> bool

firma_sidecar::config::authority::AuthorityEndpointError

Section titled “firma_sidecar::config::authority::AuthorityEndpointError”

Enum

Error constructing an [AuthorityEndpoint].

Variants:

  • EmptyUrl - The configured URL is empty.
  • InvalidUrl(String) - The configured URL is not a valid URI.
  • ConnectAddrWithoutUrl - A physical route was configured without a logical origin.
  • MissingScheme - The configured URL has no scheme.
  • MissingHost - The configured URL has no host.
  • UnsupportedScheme(String) - The configured URL does not use HTTP or HTTPS.
  • ZeroPhysicalPort - The physical route uses port zero.
  • UnspecifiedPhysicalIp - The physical route uses an unspecified IP address.

Traits: Error, Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> AuthorityEndpointError
  • PartialEq
    • fn eq(self: &Self, other: &AuthorityEndpointError) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result