pub struct ProxyRecorder { /* private fields */ }Implementations§
Source§impl ProxyRecorder
impl ProxyRecorder
pub fn new( output_dir: impl AsRef<Path>, protocol: ProxyProtocol, ) -> Result<Self, DproxyError>
pub fn output_dir(&self) -> &Path
pub fn record_chunk( &mut self, direction: Direction, chunk: &[u8], ) -> Result<(), DproxyError>
pub fn record_meta_event( &mut self, direction: Direction, protocol: &str, summary: impl Into<String>, decoded: Value, ) -> Result<(), DproxyError>
Auto Trait Implementations§
impl Freeze for ProxyRecorder
impl RefUnwindSafe for ProxyRecorder
impl Send for ProxyRecorder
impl Sync for ProxyRecorder
impl Unpin for ProxyRecorder
impl UnsafeUnpin for ProxyRecorder
impl UnwindSafe for ProxyRecorder
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