pub struct MessagingConfig {
pub enabled: bool,
pub max_hops: i32,
pub max_body_bytes: usize,
pub max_pending_per_session: usize,
pub max_inflight_per_pair: u32,
}Fields§
§enabled: bool§max_hops: i32Deepest accepted agent-mail chain depth. 0 (or any negative value)
disables the guard; there is no load-time validation beyond the type.
max_body_bytes: usize§max_pending_per_session: usizePending agent mail one recipient may hold at once, from any sender.
max_inflight_per_pair: u32Unacknowledged mail one directed sender→recipient pair may hold at
once. 0 disables the guard.
Trait Implementations§
Source§impl Clone for MessagingConfig
impl Clone for MessagingConfig
Source§fn clone(&self) -> MessagingConfig
fn clone(&self) -> MessagingConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessagingConfig
impl Debug for MessagingConfig
Source§impl Default for MessagingConfig
impl Default for MessagingConfig
Source§impl<'de> Deserialize<'de> for MessagingConfig
impl<'de> Deserialize<'de> for MessagingConfig
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 MessagingConfig
impl RefUnwindSafe for MessagingConfig
impl Send for MessagingConfig
impl Sync for MessagingConfig
impl Unpin for MessagingConfig
impl UnsafeUnpin for MessagingConfig
impl UnwindSafe for MessagingConfig
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