pub enum MessageEncoding {
Jis,
Euc,
ForUsingSjis,
Unicode,
}
Expand description
Field type variants for MessageEncoding
.
Variants§
Jis
Field variant ‘ISO-2022-JP’.
Euc
Field variant ‘EUC-JP’.
ForUsingSjis
Field variant ‘Shift_JIS’.
Unicode
Field variant ‘UTF-8’.
Trait Implementations§
Source§impl Clone for MessageEncoding
impl Clone for MessageEncoding
Source§fn clone(&self) -> MessageEncoding
fn clone(&self) -> MessageEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MessageEncoding
impl Debug for MessageEncoding
Source§impl<'a> FieldType<'a> for MessageEncoding
impl<'a> FieldType<'a> for MessageEncoding
Source§type SerializeSettings = ()
type SerializeSettings = ()
A type with values that customize the serialization algorithm, e.g.
padding information.
Source§fn serialize_with<B>(
&self,
buffer: &mut B,
_settings: Self::SerializeSettings,
) -> usizewhere
B: Buffer,
fn serialize_with<B>(
&self,
buffer: &mut B,
_settings: Self::SerializeSettings,
) -> usizewhere
B: Buffer,
Writes
self
to buffer
using custom serialization settings
.Source§fn deserialize(data: &'a [u8]) -> Result<Self, <Self as FieldType<'a>>::Error>
fn deserialize(data: &'a [u8]) -> Result<Self, <Self as FieldType<'a>>::Error>
Parses and deserializes from
data
.Source§fn serialize<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
fn serialize<B>(&self, buffer: &mut B) -> usizewhere
B: Buffer,
Writes
self
to buffer
using default settings.Source§fn deserialize_lossy(data: &'a [u8]) -> Result<Self, Self::Error>
fn deserialize_lossy(data: &'a [u8]) -> Result<Self, Self::Error>
Like
FieldType::deserialize
, but it’s allowed to skip some amount of
input checking. Invalid inputs might not trigger errors and instead be
deserialized as random values. Read moreSource§impl Hash for MessageEncoding
impl Hash for MessageEncoding
Source§impl PartialEq for MessageEncoding
impl PartialEq for MessageEncoding
impl Copy for MessageEncoding
impl Eq for MessageEncoding
impl StructuralPartialEq for MessageEncoding
Auto Trait Implementations§
impl Freeze for MessageEncoding
impl RefUnwindSafe for MessageEncoding
impl Send for MessageEncoding
impl Sync for MessageEncoding
impl Unpin for MessageEncoding
impl UnwindSafe for MessageEncoding
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