pub struct NameValuePairWriter<'a, R> { /* private fields */ }
Available on crate feature
codec
only.Expand description
Writes Key Value Pairs to the stream Uses an internal write buffer
Implementations§
Source§impl<R: AsyncWrite + Unpin> NameValuePairWriter<'_, R>
impl<R: AsyncWrite + Unpin> NameValuePairWriter<'_, R>
Sourcepub async fn extend<T: IntoIterator<Item = (P1, P2)>, P1: Buf, P2: Buf>(
&mut self,
iter: T,
) -> Result<()>
pub async fn extend<T: IntoIterator<Item = (P1, P2)>, P1: Buf, P2: Buf>( &mut self, iter: T, ) -> Result<()>
add all Key Value Pairs to the stream Panics if a Key or Value is bigger than 0x7fffffff bytes
Sourcepub async fn add(&mut self, pair: NameValuePair) -> Result<()>
pub async fn add(&mut self, pair: NameValuePair) -> Result<()>
add a Key Value Pair to the stream Panics if Key or Value is bigger than 0x7fffffff bytes
Auto Trait Implementations§
impl<'a, R> Freeze for NameValuePairWriter<'a, R>
impl<'a, R> RefUnwindSafe for NameValuePairWriter<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for NameValuePairWriter<'a, R>where
R: Send,
impl<'a, R> Sync for NameValuePairWriter<'a, R>where
R: Sync,
impl<'a, R> Unpin for NameValuePairWriter<'a, R>
impl<'a, R> !UnwindSafe for NameValuePairWriter<'a, R>
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