pub struct MessageCapture { /* private fields */ }Expand description
Bounded configuration for capturing structured messages on inference spans.
Implementations§
Source§impl MessageCapture
impl MessageCapture
Sourcepub fn new(
max_messages: usize,
max_bytes: usize,
) -> Result<Self, MessageCaptureError>
pub fn new( max_messages: usize, max_bytes: usize, ) -> Result<Self, MessageCaptureError>
Creates validated limits without silently changing either value.
Sourcepub fn max_messages(self) -> usize
pub fn max_messages(self) -> usize
Returns the maximum number of exported JSON message elements.
Trait Implementations§
Source§impl Clone for MessageCapture
impl Clone for MessageCapture
Source§fn clone(&self) -> MessageCapture
fn clone(&self) -> MessageCapture
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 moreimpl Copy for MessageCapture
Source§impl Debug for MessageCapture
impl Debug for MessageCapture
impl Eq for MessageCapture
Source§impl PartialEq for MessageCapture
impl PartialEq for MessageCapture
impl StructuralPartialEq for MessageCapture
Auto Trait Implementations§
impl Freeze for MessageCapture
impl RefUnwindSafe for MessageCapture
impl Send for MessageCapture
impl Sync for MessageCapture
impl Unpin for MessageCapture
impl UnsafeUnpin for MessageCapture
impl UnwindSafe for MessageCapture
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