Struct Atof Endpoint Config

View as MarkdownOpen in Claude

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct AtofEndpointConfig {
    pub url: String,
    pub transport: AtofEndpointTransport,
    pub headers: HashMap<String, String>,
    pub timeout_millis: u64,
}

Streaming destination for raw ATOF events.

Fields

url: String

Endpoint URL.

transport: AtofEndpointTransport

Endpoint transport.

headers: HashMap<String, String>

Headers applied to endpoint requests or handshakes.

timeout_millis: u64

Per-endpoint timeout in milliseconds.

Implementations

impl AtofEndpointConfig

impl AtofEndpointConfig

new

pub fn new(url: impl Into<String>, transport: AtofEndpointTransport) -> Self

Create a streaming endpoint with defaults.

with_header

pub fn with_header(
    self,
    key: impl Into<String>,
    value: impl Into<String>,
) -> Self

Add a header to this endpoint config.

with_timeout_millis

pub fn with_timeout_millis(self, timeout_millis: u64) -> Self

Override the endpoint timeout.

Trait Implementations

impl Clone for AtofEndpointConfig

impl Clone for AtofEndpointConfig

clone

fn clone(&self) -> AtofEndpointConfig

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for AtofEndpointConfig

impl Debug for AtofEndpointConfig

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for AtofEndpointConfig

impl<'de> Deserialize<'de> for AtofEndpointConfig

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl PartialEq for AtofEndpointConfig

impl PartialEq for AtofEndpointConfig

eq

fn eq(&self, other: &AtofEndpointConfig) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for AtofEndpointConfig

impl Serialize for AtofEndpointConfig

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl Eq for AtofEndpointConfig

impl Eq for AtofEndpointConfig

impl StructuralPartialEq for AtofEndpointConfig

impl StructuralPartialEq for AtofEndpointConfig