[−][src]Struct httpcodec::RequestEncoder
HTTP request encoder.
Methods
impl<E: BodyEncode> RequestEncoder<E>
[src]
Trait Implementations
impl<E: Default> Default for RequestEncoder<E>
[src]
fn default() -> RequestEncoder<E>
[src]
impl<E: Debug> Debug for RequestEncoder<E>
[src]
impl<E: SizedEncode + BodyEncode> SizedEncode for RequestEncoder<E>
[src]
fn exact_requiring_bytes(&self) -> u64
[src]
impl<E: BodyEncode> Encode for RequestEncoder<E>
[src]
Auto Trait Implementations
impl<E> Unpin for RequestEncoder<E> where
E: Unpin,
E: Unpin,
impl<E> Send for RequestEncoder<E> where
E: Send,
E: Send,
impl<E> Sync for RequestEncoder<E> where
E: Sync,
E: Sync,
impl<E> RefUnwindSafe for RequestEncoder<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> UnwindSafe for RequestEncoder<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> EncodeExt for T where
T: Encode,
[src]
T: Encode,
fn with_item(item: Self::Item) -> Result<Self, Error> where
Self: Default,
[src]
Self: Default,
Creates a new encoder instance that has the given initial item. Read more
fn map_err<E, F>(self, f: F) -> MapErr<Self, E, F> where
F: Fn(Error) -> E,
Error: From<E>,
[src]
F: Fn(Error) -> E,
Error: From<E>,
Creates an encoder for modifying encoding errors produced by self
. Read more
fn map_from<T, F>(self, f: F) -> MapFrom<Self, T, F> where
F: Fn(T) -> Self::Item,
[src]
F: Fn(T) -> Self::Item,
Creates an encoder that converts items into ones that suited to the self
encoder by calling the given function. Read more
fn try_map_from<T, E, F>(self, f: F) -> TryMapFrom<Self, T, E, F> where
F: Fn(T) -> Result<Self::Item, E>,
Error: From<E>,
[src]
F: Fn(T) -> Result<Self::Item, E>,
Error: From<E>,
Creates an encoder that tries to convert items into ones that suited to the self
encoder by calling the given function. Read more
fn optional(self) -> Optional<Self>
[src]
Creates an encoder that represents an optional encoder. Read more
fn max_bytes(self, n: u64) -> MaxBytes<Self>
[src]
Creates an encoder that will fail if the number of encoded bytes of an item exceeds n
. Read more
fn length(self, n: u64) -> Length<Self>
[src]
Creates an encoder that required to encode each item exactly at the specified number of bytes. Read more
fn chain<T>(self, other: T) -> TupleEncoder<(Self, T)> where
T: Encode,
[src]
T: Encode,
Takes two encoders and creates a new encoder that encodes both items in sequence. Read more
fn repeat<I>(self) -> Repeat<Self, I> where
I: Iterator<Item = Self::Item>,
[src]
I: Iterator<Item = Self::Item>,
Creates an encoder that repeats encoding of Self::Item
. Read more
fn pre_encode(self) -> PreEncode<Self>
[src]
Creates an encoder that pre-encodes items when start_encoding
method is called. Read more
fn slice(self) -> Slice<Self>
[src]
Creates an encoder that makes it possible to slice the encoded byte sequence in arbitrary units. Read more
fn last(self, item: Self::Item) -> Last<Self>
[src]
Creates an encoder that cannot accept any more items except the given one.
fn encode_into_bytes(&mut self, item: Self::Item) -> Result<Vec<u8>, Error>
[src]
Encodes the given item and returns the resulting bytes. Read more
impl<T> IoEncodeExt for T where
T: Encode,
[src]
T: Encode,
fn encode_to_write_buf<B>(&mut self, buf: &mut WriteBuf<B>) -> Result<(), Error> where
B: AsMut<[u8]>,
[src]
B: AsMut<[u8]>,
Encodes the items remaining in the encoder and writes the encoded bytes to the given write buffer. Read more
fn encode_all<W>(&mut self, writer: W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
Encodes all of the items remaining in the encoder and writes the encoded bytes to the given writer. Read more