#[repr(C)]pub struct RawFileDescriptor {
pub fd: c_int,
pub start: c_long,
pub length: c_long,
}Expand description
@brief Represent the raw file descriptor’s info.
The RawFileDescriptor is an output parameter in the {@link OH_ResourceManager_GetRawFileDescriptor}, and describes the raw file’s file descriptor, start position and the length in the HAP.
@since 8 @version 1.0
Fields§
§fd: c_intthe raw file fd
start: c_longthe offset from where the raw file starts in the HAP
length: c_longthe length of the raw file in the HAP.
Trait Implementations§
Source§impl Clone for RawFileDescriptor
impl Clone for RawFileDescriptor
Source§fn clone(&self) -> RawFileDescriptor
fn clone(&self) -> RawFileDescriptor
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 RawFileDescriptor
impl Debug for RawFileDescriptor
impl Copy for RawFileDescriptor
Auto Trait Implementations§
impl Freeze for RawFileDescriptor
impl RefUnwindSafe for RawFileDescriptor
impl Send for RawFileDescriptor
impl Sync for RawFileDescriptor
impl Unpin for RawFileDescriptor
impl UnsafeUnpin for RawFileDescriptor
impl UnwindSafe for RawFileDescriptor
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