pub struct OdinConfig {
pub node_id: String,
pub network_endpoint: String,
pub token: Option<String>,
pub timeout: Duration,
pub max_connections: usize,
pub heartbeat_interval: Duration,
pub max_retries: u32,
pub debug: bool,
pub performance_monitoring: bool,
pub max_message_size: usize,
pub buffer_size: usize,
}
Expand description
Configuration for ODIN Protocol instance
Fields§
§node_id: String
Unique node identifier
network_endpoint: String
Network endpoint URL (WebSocket)
token: Option<String>
Authentication token (optional)
timeout: Duration
Connection timeout
max_connections: usize
Maximum number of connections
heartbeat_interval: Duration
Heartbeat interval
max_retries: u32
Maximum retry attempts
debug: bool
Enable debug logging
performance_monitoring: bool
Enable performance monitoring
max_message_size: usize
Maximum message size in bytes
buffer_size: usize
Buffer size for network operations
Implementations§
Source§impl OdinConfig
impl OdinConfig
Trait Implementations§
Source§impl Clone for OdinConfig
impl Clone for OdinConfig
Source§fn clone(&self) -> OdinConfig
fn clone(&self) -> OdinConfig
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 OdinConfig
impl Debug for OdinConfig
Source§impl Default for OdinConfig
impl Default for OdinConfig
Source§impl<'de> Deserialize<'de> for OdinConfig
impl<'de> Deserialize<'de> for OdinConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OdinConfig
impl RefUnwindSafe for OdinConfig
impl Send for OdinConfig
impl Sync for OdinConfig
impl Unpin for OdinConfig
impl UnwindSafe for OdinConfig
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