#[repr(C)]pub struct RawFileDescriptor64 {
pub fd: c_int,
pub start: i64,
pub length: i64,
}Expand description
@brief Represent the raw file descriptor’s info.
The RawFileDescriptor64 is an output parameter in the {@link OH_ResourceManager_GetRawFileDescriptor64}, and describes the raw file’s file descriptor, start position and the length in the HAP.
@since 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 · Source§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 UnsafeUnpin for RawFileDescriptor64
impl UnwindSafe for RawFileDescriptor64
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