pub struct HttpRelayBuilder(/* private fields */);Expand description
Builder for HttpRelay.
Implementations§
Source§impl HttpRelayBuilder
impl HttpRelayBuilder
Sourcepub fn bind_address(self, addr: IpAddr) -> Self
pub fn bind_address(self, addr: IpAddr) -> Self
Configure the address to bind to (default: 127.0.0.1).
Sourcepub fn link_timeout(self, timeout: Duration) -> Self
pub fn link_timeout(self, timeout: Duration) -> Self
Configure the timeout for link endpoints (default: 10 minutes). This is how long producers wait for consumers (and vice versa).
Sourcepub fn inbox_timeout(self, timeout: Duration) -> Self
pub fn inbox_timeout(self, timeout: Duration) -> Self
Configure the timeout for inbox long-poll endpoints (default: 25 seconds). Shorter than the default request timeout to avoid proxy timeouts.
Sourcepub fn inbox_cache_ttl(self, ttl: Duration) -> Self
pub fn inbox_cache_ttl(self, ttl: Duration) -> Self
Configure the TTL for inbox messages (default: 5 minutes). Messages persist for this duration after being sent.
Sourcepub fn max_body_size(self, size: usize) -> Self
pub fn max_body_size(self, size: usize) -> Self
Configure the maximum request body size (default: 2KB).
Sourcepub fn max_entries(self, max: usize) -> Self
pub fn max_entries(self, max: usize) -> Self
Configure the maximum entries in the waiting list (default: 10000). When this limit is reached, oldest entries are evicted.
Sourcepub fn persist_db(self, path: Option<PathBuf>) -> Self
pub fn persist_db(self, path: Option<PathBuf>) -> Self
Configure the path to SQLite database for persistent storage. If not specified, uses in-memory storage (data lost on restart).
Trait Implementations§
Source§impl Debug for HttpRelayBuilder
impl Debug for HttpRelayBuilder
Source§impl Default for HttpRelayBuilder
impl Default for HttpRelayBuilder
Source§fn default() -> HttpRelayBuilder
fn default() -> HttpRelayBuilder
Auto Trait Implementations§
impl Freeze for HttpRelayBuilder
impl RefUnwindSafe for HttpRelayBuilder
impl Send for HttpRelayBuilder
impl Sync for HttpRelayBuilder
impl Unpin for HttpRelayBuilder
impl UnsafeUnpin for HttpRelayBuilder
impl UnwindSafe for HttpRelayBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more