#[non_exhaustive]pub struct Latin1 {}Available on crate feature
extra only.Expand description
Latin1 codec.
Implementations§
Source§impl Latin1
impl Latin1
Sourcepub const fn data_coding(&self) -> DataCoding
pub const fn data_coding(&self) -> DataCoding
Returns the associated DataCoding.
Source§impl Latin1
impl Latin1
Sourcepub fn encode_to_vec(&self, input: &str) -> Result<Vec<u8>, Latin1EncodeError>
pub fn encode_to_vec(&self, input: &str) -> Result<Vec<u8>, Latin1EncodeError>
Encodes the given message into a vector of bytes.
Trait Implementations§
Source§impl Concatenator for Latin1
impl Concatenator for Latin1
Source§type Error = Latin1ConcatenateError
type Error = Latin1ConcatenateError
The type of errors that can occur during concatenation.
Source§fn concatenate(
&self,
message: &str,
max_message_size: usize,
part_header_size: usize,
) -> Result<(Concatenation, DataCoding), <Latin1 as Concatenator>::Error>
fn concatenate( &self, message: &str, max_message_size: usize, part_header_size: usize, ) -> Result<(Concatenation, DataCoding), <Latin1 as Concatenator>::Error>
Splits the encoded message into concatenated parts and their associated
DataCoding. Read moreAuto Trait Implementations§
impl Freeze for Latin1
impl RefUnwindSafe for Latin1
impl Send for Latin1
impl Sync for Latin1
impl Unpin for Latin1
impl UnwindSafe for Latin1
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more