[−][src]Struct multipart::mock::ClientRequest
A mock implementation of client::HttpRequest
which can spawn an HttpBuffer
.
client::HttpRequest
impl requires the client
feature.
Trait Implementations
impl Debug for ClientRequest
[src]
impl Default for ClientRequest
[src]
pub fn default() -> ClientRequest
[src]
impl HttpRequest for ClientRequest
[src]
type Stream = HttpBuffer
The HTTP stream type that can be opend by this request, to which the multipart data will be written. Read more
type Error = Error
The error type for this request.
Must be compatible with io::Error
as well as Self::HttpStream::Error
Read more
pub fn apply_headers(
&mut self,
boundary: &str,
content_len: Option<u64>
) -> bool
[src]
&mut self,
boundary: &str,
content_len: Option<u64>
) -> bool
pub fn open_stream(self) -> Result<HttpBuffer, Error>
[src]
Panics
If apply_headers()
was not called.
Auto Trait Implementations
impl RefUnwindSafe for ClientRequest
[src]
impl Send for ClientRequest
[src]
impl Sync for ClientRequest
[src]
impl Unpin for ClientRequest
[src]
impl UnwindSafe for ClientRequest
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,