pub struct ReverseConnectionConfig {
pub backlog: u32,
pub handshake_timeout: Duration,
pub max_connections_per_agent: usize,
pub allowed_agents: HashSet<String>,
pub require_auth: bool,
pub request_timeout: Duration,
}Expand description
Configuration for the reverse connection listener.
Fields§
§backlog: u32Maximum number of pending connections in the accept queue
handshake_timeout: DurationTimeout for the registration handshake
max_connections_per_agent: usizeMaximum number of connections per agent
allowed_agents: HashSet<String>Allowed agent IDs (empty = allow all)
require_auth: boolWhether to require agent authentication
request_timeout: DurationRequest timeout for accepted connections
Trait Implementations§
Source§impl Clone for ReverseConnectionConfig
impl Clone for ReverseConnectionConfig
Source§fn clone(&self) -> ReverseConnectionConfig
fn clone(&self) -> ReverseConnectionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReverseConnectionConfig
impl Debug for ReverseConnectionConfig
Auto Trait Implementations§
impl Freeze for ReverseConnectionConfig
impl RefUnwindSafe for ReverseConnectionConfig
impl Send for ReverseConnectionConfig
impl Sync for ReverseConnectionConfig
impl Unpin for ReverseConnectionConfig
impl UnwindSafe for ReverseConnectionConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request