#[repr(C)]pub struct LseekRequest {
pub ino: u64,
pub offset: i64,
pub whence: u32,
pub _pad: u32,
}Expand description
Lseek request.
Wire layout: ino @ 0..8, offset @ 8..16, whence @ 16..20, _pad @ 20..24.
Fields§
§ino: u64Inode number of the file.
offset: i64Offset relative to whence (can be negative).
whence: u32Whence: SEEK_SET (0), SEEK_CUR (1), or SEEK_END (2).
_pad: u32Trait Implementations§
Source§impl Clone for LseekRequest
impl Clone for LseekRequest
Source§fn clone(&self) -> LseekRequest
fn clone(&self) -> LseekRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LseekRequest
Source§impl Debug for LseekRequest
impl Debug for LseekRequest
Source§impl FromBytes for LseekRequest
impl FromBytes for LseekRequest
Source§impl FromZeros for LseekRequest
impl FromZeros for LseekRequest
impl Immutable for LseekRequest
Source§impl IntoBytes for LseekRequest
impl IntoBytes for LseekRequest
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl TryFromBytes for LseekRequest
impl TryFromBytes for LseekRequest
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for LseekRequest
impl RefUnwindSafe for LseekRequest
impl Send for LseekRequest
impl Sync for LseekRequest
impl Unpin for LseekRequest
impl UnsafeUnpin for LseekRequest
impl UnwindSafe for LseekRequest
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