Enum finchers::test::TestResult [−][src]
pub enum TestResult { Upgraded(Box<Future<Item = (), Error = ()> + Send + 'static>), Payload { chunks: Vec<Bytes>, trailers: Option<HeaderMap>, content_length: Option<u64>, }, }
A struct representing a response body returned from the test runner.
Variants
Upgraded(Box<Future<Item = (), Error = ()> + Send + 'static>)
Payload
Fields of Payload
chunks: Vec<Bytes> | |
trailers: Option<HeaderMap> | |
content_length: Option<u64> |
Methods
impl TestResult
[src]
impl TestResult
pub fn chunks(&self) -> Option<&[Bytes]>
[src]
pub fn chunks(&self) -> Option<&[Bytes]>
pub fn trailers(&self) -> Option<&HeaderMap>
[src]
pub fn trailers(&self) -> Option<&HeaderMap>
pub fn content_length(&self) -> Option<u64>
[src]
pub fn content_length(&self) -> Option<u64>
pub fn is_chunked(&self) -> bool
[src]
pub fn is_chunked(&self) -> bool
pub fn is_upgraded(&self) -> bool
[src]
pub fn is_upgraded(&self) -> bool
pub fn to_bytes(&self) -> Option<Cow<[u8]>>
[src]
pub fn to_bytes(&self) -> Option<Cow<[u8]>>
pub fn to_utf8(&self) -> Option<Cow<str>>
[src]
pub fn to_utf8(&self) -> Option<Cow<str>>
Trait Implementations
impl Debug for TestResult
[src]
impl Debug for TestResult
Auto Trait Implementations
impl Send for TestResult
impl Send for TestResult
impl !Sync for TestResult
impl !Sync for TestResult