Struct stream_httparse::Chunk [−][src]
A single HTTP-Chunk used for sending
Data with Transfer-Encoding: Chunked
Implementations
impl Chunk
[src]
pub fn new(size: usize, data: Vec<u8>) -> Self
[src]
Creates a new Chunk with the given Data as its state
pub fn serialize(&self, buf: &mut Vec<u8>)
[src]
Serializes the Chunk into the given Buffer by appending the final Data to the End of it
pub fn size(&self) -> usize
[src]
The given Size of the Chunk
Trait Implementations
impl Debug for Chunk
[src]
impl PartialEq<Chunk> for Chunk
[src]
impl StructuralPartialEq for Chunk
[src]
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl Send for Chunk
impl Sync for Chunk
impl Unpin for Chunk
impl UnwindSafe for Chunk
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> 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>,