#[repr(C)]pub struct RawFileDescriptor64 {
pub fd: c_int,
pub start: i64,
pub length: i64,
}Available on crate feature
api-11 only.Expand description
Represent the raw file descriptor’s info.
The RawFileDescriptor64 is an output parameter in the OH_ResourceManager_GetRawFileDescriptor64,
and describes the raw file’s file descriptor, start position and the length in the HAP.
Available since API-level: 11
Version: 1.0
Fields§
§fd: c_intthe raw file fd
start: i64the offset from where the raw file starts in the HAP
length: i64the length of the raw file in the HAP.
Trait Implementations§
Source§impl Clone for RawFileDescriptor64
impl Clone for RawFileDescriptor64
Source§fn clone(&self) -> RawFileDescriptor64
fn clone(&self) -> RawFileDescriptor64
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawFileDescriptor64
impl Debug for RawFileDescriptor64
impl Copy for RawFileDescriptor64
Auto Trait Implementations§
impl Freeze for RawFileDescriptor64
impl RefUnwindSafe for RawFileDescriptor64
impl Send for RawFileDescriptor64
impl Sync for RawFileDescriptor64
impl Unpin for RawFileDescriptor64
impl UnwindSafe for RawFileDescriptor64
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)