Struct hotfix_encoding::EncoderHandle
source · 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<NonZeroU32> for EncoderHandle<'a, B>where
B: Buffer,
impl<'a, B> SetField<NonZeroU32> 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> 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