#[repr(transparent)]pub struct WslcSession(pub HANDLE);Expand description
WSLC 会话不透明句柄
采用 #[repr(transparent)] Newtype 包装 HANDLE,
确保与 C ABI 布局完全一致,同时在编译期阻止不同类型句柄的混淆传递。
Tuple Fields§
§0: HANDLEImplementations§
Trait Implementations§
Source§impl Clone for WslcSession
impl Clone for WslcSession
impl Copy for WslcSession
Source§impl Debug for WslcSession
impl Debug for WslcSession
Source§impl Default for WslcSession
impl Default for WslcSession
impl Eq for WslcSession
Source§impl PartialEq for WslcSession
impl PartialEq for WslcSession
impl StructuralPartialEq for WslcSession
Auto Trait Implementations§
impl !Send for WslcSession
impl !Sync for WslcSession
impl Freeze for WslcSession
impl RefUnwindSafe for WslcSession
impl Unpin for WslcSession
impl UnsafeUnpin for WslcSession
impl UnwindSafe for WslcSession
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