pub struct ObjectHandle(/* private fields */);Expand description
Identifiers that provide a device- and session-unique consistent reference to a logical object on a device.
Object handles are used in MTP transactions to reference a logical object on the device, but do not necessarily reference actual data constructs on the device.
Object handles are only persistent within an MTP session; once a session has been re-opened, all previous values shall be assumed to be invalid, and the contents of the Responder must be re-enumerated if object handles are needed
Implementations§
Source§impl ObjectHandle
impl ObjectHandle
Sourcepub const NONE: ObjectHandle
pub const NONE: ObjectHandle
Indicates the absense of an object handle
This is used in both parameters (e.g. not assigning a parent to an object), and return types in contexts where missing objects are not errors.
Sourcepub const ALL: ObjectHandle
pub const ALL: ObjectHandle
Indicates a selection of all objects in the context
For example in the DeleteObject operation, this can be used to delete all objects on the
responder.
Trait Implementations§
impl ArrayEncodable for ObjectHandle
Source§impl Clone for ObjectHandle
impl Clone for ObjectHandle
Source§fn clone(&self) -> ObjectHandle
fn clone(&self) -> ObjectHandle
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ObjectHandle
Source§impl Debug for ObjectHandle
impl Debug for ObjectHandle
Source§impl Default for ObjectHandle
impl Default for ObjectHandle
Source§fn default() -> ObjectHandle
fn default() -> ObjectHandle
Source§impl DekuContainerRead<'_> for ObjectHandle
impl DekuContainerRead<'_> for ObjectHandle
Source§fn from_reader<R, 'a>(
__deku_input: (&'a mut R, usize),
) -> Result<(usize, ObjectHandle), DekuError>
fn from_reader<R, 'a>( __deku_input: (&'a mut R, usize), ) -> Result<(usize, ObjectHandle), DekuError>
no_std_io::Read. Read moreSource§impl DekuContainerWrite for ObjectHandle
impl DekuContainerWrite for ObjectHandle
Source§impl DekuReader<'_, Endian> for ObjectHandle
impl DekuReader<'_, Endian> for ObjectHandle
Source§fn from_reader_with_ctx<R>(
reader: &mut Reader<R>,
ctx: Endian,
) -> Result<ObjectHandle, DekuError>
fn from_reader_with_ctx<R>( reader: &mut Reader<R>, ctx: Endian, ) -> Result<ObjectHandle, DekuError>
Source§impl DekuReader<'_> for ObjectHandle
impl DekuReader<'_> for ObjectHandle
Source§fn from_reader_with_ctx<R>(
__deku_reader: &mut Reader<R>,
_: (),
) -> Result<ObjectHandle, DekuError>
fn from_reader_with_ctx<R>( __deku_reader: &mut Reader<R>, _: (), ) -> Result<ObjectHandle, DekuError>
Source§impl DekuUpdate for ObjectHandle
impl DekuUpdate for ObjectHandle
Source§impl DekuWriter for ObjectHandle
impl DekuWriter for ObjectHandle
Source§impl DekuWriter<Endian> for ObjectHandle
impl DekuWriter<Endian> for ObjectHandle
impl Eq for ObjectHandle
Source§impl From<ObjectHandle> for Parameter
impl From<ObjectHandle> for Parameter
Source§fn from(value: ObjectHandle) -> Parameter
fn from(value: ObjectHandle) -> Parameter
Source§impl From<u32> for ObjectHandle
impl From<u32> for ObjectHandle
Source§fn from(value: u32) -> ObjectHandle
fn from(value: u32) -> ObjectHandle
Source§impl Hash for ObjectHandle
impl Hash for ObjectHandle
Source§impl Ord for ObjectHandle
impl Ord for ObjectHandle
Source§fn cmp(&self, other: &ObjectHandle) -> Ordering
fn cmp(&self, other: &ObjectHandle) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ObjectHandle
impl PartialEq for ObjectHandle
Source§fn eq(&self, other: &ObjectHandle) -> bool
fn eq(&self, other: &ObjectHandle) -> bool
self and other values to be equal, and is used by ==.