pub struct CodeSetContext {
pub char_data: u32,
pub wchar_data: u32,
}Expand description
CONV_FRAME::CodeSetContext, the transmission code sets chosen by a
client.
Fields§
§char_data: u32Transmission code set for char and string.
wchar_data: u32Transmission code set for wchar and wstring.
Implementations§
Source§impl CodeSetContext
impl CodeSetContext
Sourcepub fn to_service_context(&self, order: ByteOrder) -> ServiceContext
pub fn to_service_context(&self, order: ByteOrder) -> ServiceContext
Wraps the context in a service_id::CODE_SETS service context.
Sourcepub fn from_service_context(context: &ServiceContext) -> Result<CodeSetContext>
pub fn from_service_context(context: &ServiceContext) -> Result<CodeSetContext>
Reads the context from a service context’s data.
Sourcepub fn find(contexts: &[ServiceContext]) -> Option<Result<CodeSetContext>>
pub fn find(contexts: &[ServiceContext]) -> Option<Result<CodeSetContext>>
Finds and reads the code set context in a service context list.
Trait Implementations§
Source§impl Clone for CodeSetContext
impl Clone for CodeSetContext
impl Copy for CodeSetContext
Source§impl Debug for CodeSetContext
impl Debug for CodeSetContext
impl Eq for CodeSetContext
Source§impl PartialEq for CodeSetContext
impl PartialEq for CodeSetContext
impl StructuralPartialEq for CodeSetContext
Auto Trait Implementations§
impl Forget for CodeSetContext
impl Freeze for CodeSetContext
impl Move for CodeSetContext
impl RefUnwindSafe for CodeSetContext
impl Send for CodeSetContext
impl Sync for CodeSetContext
impl Unpin for CodeSetContext
impl UnsafeUnpin for CodeSetContext
impl UnwindSafe for CodeSetContext
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