pub struct ProfileBatching;Expand description
Batching only when the negotiated pair supports it.
This is the MCP policy. Feature::JsonRpcBatching is absent from a
2025-06-18-or-later profile, so a modern peer that sends a batch is
refused rather than quietly processed — the difference is observable to the
sender, which is the point.
Trait Implementations§
Source§impl BatchPolicy for ProfileBatching
impl BatchPolicy for ProfileBatching
Source§fn allows_batch(&self, profile: &FeatureProfile) -> bool
fn allows_batch(&self, profile: &FeatureProfile) -> bool
Whether a frame holding several messages may be processed.
Source§impl Clone for ProfileBatching
impl Clone for ProfileBatching
impl Copy for ProfileBatching
Source§impl Debug for ProfileBatching
impl Debug for ProfileBatching
Auto Trait Implementations§
impl Freeze for ProfileBatching
impl RefUnwindSafe for ProfileBatching
impl Send for ProfileBatching
impl Sync for ProfileBatching
impl Unpin for ProfileBatching
impl UnsafeUnpin for ProfileBatching
impl UnwindSafe for ProfileBatching
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