Struct aws_smithy_runtime::client::http::test_util::dvr::NetworkTraffic
source · pub struct NetworkTraffic { /* private fields */ }
Available on crate features
client
and test-util
and connector-hyper-0-14-x
only.Expand description
A complete traffic recording
A traffic recording can be replayed with RecordingClient
.
Implementations§
source§impl NetworkTraffic
impl NetworkTraffic
sourcepub fn from_file(path: impl AsRef<Path>) -> Result<Self, Box<dyn Error>>
pub fn from_file(path: impl AsRef<Path>) -> Result<Self, Box<dyn Error>>
Create a NetworkTraffic instance from a file
sourcepub fn write_to_file(
&self,
path: impl AsRef<Path>
) -> Result<(), Box<dyn Error>>
pub fn write_to_file( &self, path: impl AsRef<Path> ) -> Result<(), Box<dyn Error>>
Create a NetworkTraffic instance from a file
sourcepub fn correct_content_lengths(&mut self)
pub fn correct_content_lengths(&mut self)
Update the network traffic with all content-length
fields fixed to match the contents
Trait Implementations§
source§impl Debug for NetworkTraffic
impl Debug for NetworkTraffic
source§impl<'de> Deserialize<'de> for NetworkTraffic
impl<'de> Deserialize<'de> for NetworkTraffic
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 NetworkTraffic
impl RefUnwindSafe for NetworkTraffic
impl Send for NetworkTraffic
impl Sync for NetworkTraffic
impl Unpin for NetworkTraffic
impl UnwindSafe for NetworkTraffic
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.