Struct nx::input::SharedMemoryData
source · [−]#[repr(C)]pub struct SharedMemoryData {Show 16 fields
pub header: [u8; 1024],
pub touch_state: TouchState,
pub pad: [u8; 960],
pub mouse: [u8; 1024],
pub keyboard: [u8; 1024],
pub unk: [u8; 1024],
pub unk_2: [u8; 1024],
pub unk_3: [u8; 1024],
pub unk_4: [u8; 1024],
pub unk_5: [u8; 512],
pub unk_6: [u8; 512],
pub unk_7: [u8; 512],
pub unk_8: [u8; 2048],
pub controller_serials: [u8; 16384],
pub controllers: [ControllerData; 10],
pub unk_9: [u8; 17920],
}
Fields
header: [u8; 1024]
touch_state: TouchState
pad: [u8; 960]
mouse: [u8; 1024]
keyboard: [u8; 1024]
unk: [u8; 1024]
unk_2: [u8; 1024]
unk_3: [u8; 1024]
unk_4: [u8; 1024]
unk_5: [u8; 512]
unk_6: [u8; 512]
unk_7: [u8; 512]
unk_8: [u8; 2048]
controller_serials: [u8; 16384]
controllers: [ControllerData; 10]
unk_9: [u8; 17920]
Trait Implementations
sourceimpl Clone for SharedMemoryData
impl Clone for SharedMemoryData
sourcefn clone(&self) -> SharedMemoryData
fn clone(&self) -> SharedMemoryData
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SharedMemoryData
Auto Trait Implementations
impl RefUnwindSafe for SharedMemoryData
impl Send for SharedMemoryData
impl Sync for SharedMemoryData
impl Unpin for SharedMemoryData
impl UnwindSafe for SharedMemoryData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> RequestCommandParameter for T where
T: Copy,
impl<T> RequestCommandParameter for T where
T: Copy,
default fn before_request_write(
_raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
default fn before_send_sync_request(
raw: &T,
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<(), ResultCode>
sourceimpl<T> RequestCommandParameter<T> for T where
T: Copy,
impl<T> RequestCommandParameter<T> for T where
T: Copy,
default fn after_request_read(
ctx: &mut ServerContext<'_>
) -> Result<T, ResultCode>
sourceimpl<T> ResponseCommandParameter for T where
T: Copy,
impl<T> ResponseCommandParameter for T where
T: Copy,
default fn before_response_write(
_raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
default fn after_response_write(
raw: &T,
ctx: &mut ServerContext<'_>
) -> Result<(), ResultCode>
sourceimpl<T> ResponseCommandParameter<T> for T where
T: Copy,
impl<T> ResponseCommandParameter<T> for T where
T: Copy,
default fn after_response_read(
walker: &mut DataWalker,
_ctx: &mut CommandContext
) -> Result<T, ResultCode>
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more