Struct nx::ipc::ObjectInfo
source · [−]#[repr(C)]pub struct ObjectInfo {
pub handle: Handle,
pub domain_object_id: DomainObjectId,
pub owns_handle: bool,
pub protocol: CommandProtocol,
}
Fields
handle: Handle
domain_object_id: DomainObjectId
owns_handle: bool
protocol: CommandProtocol
Implementations
sourceimpl ObjectInfo
impl ObjectInfo
pub const fn new() -> Self
pub const fn from_handle(handle: Handle) -> Self
pub const fn from_domain_object_id(
parent_handle: Handle,
domain_object_id: DomainObjectId
) -> Self
pub const fn is_valid(&self) -> bool
pub const fn is_domain(&self) -> bool
pub fn uses_cmif_protocol(&self) -> bool
pub fn uses_tipc_protocol(&self) -> bool
pub fn convert_current_object_to_domain(&mut self) -> Result<DomainObjectId>
pub fn query_pointer_buffer_size(&mut self) -> Result<u16>
pub fn clone_current_object(&mut self) -> Result<MoveHandle>
Trait Implementations
sourceimpl Clone for ObjectInfo
impl Clone for ObjectInfo
sourcefn clone(&self) -> ObjectInfo
fn clone(&self) -> ObjectInfo
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
sourceimpl Debug for ObjectInfo
impl Debug for ObjectInfo
sourceimpl Default for ObjectInfo
impl Default for ObjectInfo
sourcefn default() -> ObjectInfo
fn default() -> ObjectInfo
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ObjectInfo> for ObjectInfo
impl PartialEq<ObjectInfo> for ObjectInfo
sourcefn eq(&self, other: &ObjectInfo) -> bool
fn eq(&self, other: &ObjectInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectInfo) -> bool
fn ne(&self, other: &ObjectInfo) -> bool
This method tests for !=
.
impl Copy for ObjectInfo
impl Eq for ObjectInfo
impl StructuralEq for ObjectInfo
impl StructuralPartialEq for ObjectInfo
Auto Trait Implementations
impl RefUnwindSafe for ObjectInfo
impl Send for ObjectInfo
impl Sync for ObjectInfo
impl Unpin for ObjectInfo
impl UnwindSafe for ObjectInfo
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