pub struct FileAllocateRequest {
pub offset: u64,
pub length: u64,
pub mode: AllocateMode,
}
Fields§
§offset: u64
§length: u64
§mode: AllocateMode
Trait Implementations§
Source§impl Debug for FileAllocateRequest
impl Debug for FileAllocateRequest
Source§impl Encodable for FileAllocateRequest
impl Encodable for FileAllocateRequest
Source§type Encoded = WireFileAllocateRequest
type Encoded = WireFileAllocateRequest
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl EncodableOption for Box<FileAllocateRequest>
impl EncodableOption for Box<FileAllocateRequest>
Source§type EncodedOption = WireBox<WireFileAllocateRequest>
type EncodedOption = WireBox<WireFileAllocateRequest>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for FileAllocateRequestwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<___E> for FileAllocateRequestwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§impl<___E> EncodeOption<___E> for Box<FileAllocateRequest>where
___E: Encoder + ?Sized,
FileAllocateRequest: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<FileAllocateRequest>where
___E: Encoder + ?Sized,
FileAllocateRequest: Encode<___E>,
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireFileAllocateRequest> for FileAllocateRequest
impl TakeFrom<WireFileAllocateRequest> for FileAllocateRequest
Source§fn take_from(from: &WireFileAllocateRequest) -> Self
fn take_from(from: &WireFileAllocateRequest) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for FileAllocateRequest
impl RefUnwindSafe for FileAllocateRequest
impl Send for FileAllocateRequest
impl Sync for FileAllocateRequest
impl Unpin for FileAllocateRequest
impl UnwindSafe for FileAllocateRequest
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