pub struct EncoderHandle<'a, B> { /* private fields */ }
Expand description
A type returned by Encoder::start_message
to
actually encode data fields.
Implementations§
Trait Implementations§
Source§impl<'a, B: Debug> Debug for EncoderHandle<'a, B>
impl<'a, B: Debug> Debug for EncoderHandle<'a, B>
Source§impl<'a, B, F> SetField<&F> for EncoderHandle<'a, B>where
B: Buffer,
F: IsFieldDefinition,
impl<'a, B, F> SetField<&F> for EncoderHandle<'a, B>where
B: Buffer,
F: IsFieldDefinition,
Source§fn set_with<'s, V>(
&'s mut self,
field: &F,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
fn set_with<'s, V>(
&'s mut self,
field: &F,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
Writes a field with custom
FieldType::SerializeSettings
.Source§fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
Writes a field with default
FieldType::SerializeSettings
.Source§impl<'a, B> SetField<NonZero<u32>> for EncoderHandle<'a, B>where
B: Buffer,
impl<'a, B> SetField<NonZero<u32>> for EncoderHandle<'a, B>where
B: Buffer,
Source§fn set_with<'s, V>(
&'s mut self,
tag: TagU32,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
fn set_with<'s, V>(
&'s mut self,
tag: TagU32,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
Writes a field with custom
FieldType::SerializeSettings
.Source§fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
Writes a field with default
FieldType::SerializeSettings
.Source§impl<'a, B> SetField<u32> for EncoderHandle<'a, B>where
B: Buffer,
impl<'a, B> SetField<u32> for EncoderHandle<'a, B>where
B: Buffer,
Source§fn set_with<'s, V>(
&'s mut self,
tag: u32,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
fn set_with<'s, V>(
&'s mut self,
tag: u32,
value: V,
settings: V::SerializeSettings,
)where
V: FieldType<'s>,
Writes a field with custom
FieldType::SerializeSettings
.Source§fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
fn set<'a, V>(&'a mut self, field: F, value: V)where
V: FieldType<'a>,
Writes a field with default
FieldType::SerializeSettings
.Auto Trait Implementations§
impl<'a, B> Freeze for EncoderHandle<'a, B>
impl<'a, B> RefUnwindSafe for EncoderHandle<'a, B>where
B: RefUnwindSafe,
impl<'a, B> Send for EncoderHandle<'a, B>where
B: Send,
impl<'a, B> Sync for EncoderHandle<'a, B>where
B: Sync,
impl<'a, B> Unpin for EncoderHandle<'a, B>
impl<'a, B> !UnwindSafe for EncoderHandle<'a, B>
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