#[repr(C)]pub struct FileAllocateRequest {
pub offset: Uint64,
pub length: Uint64,
pub mode: AllocateMode,
}Expand description
The wire type corresponding to FileAllocateRequest.
Fields§
§offset: Uint64§length: Uint64§mode: AllocateModeTrait Implementations§
Source§impl Constrained for FileAllocateRequest
impl Constrained for FileAllocateRequest
Source§impl Debug for FileAllocateRequest
impl Debug for FileAllocateRequest
Source§impl<___D> Decode<___D> for FileAllocateRequestwhere
___D: InternalHandleDecoder + ?Sized + HandleDecoder,
impl<___D> Decode<___D> for FileAllocateRequestwhere
___D: InternalHandleDecoder + ?Sized + HandleDecoder,
Source§impl<___E> Encode<FileAllocateRequest, ___E> for FileAllocateRequestwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
impl<___E> Encode<FileAllocateRequest, ___E> for FileAllocateRequestwhere
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<FileAllocateRequest>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<FileAllocateRequest>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E, T0, T1, T2> Encode<FileAllocateRequest, ___E> for FileAllocateRequest<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
T0: Encode<Uint64, ___E>,
T1: Encode<Uint64, ___E>,
T2: Encode<AllocateMode, ___E>,
impl<___E, T0, T1, T2> Encode<FileAllocateRequest, ___E> for FileAllocateRequest<T0, T1, T2>where
___E: InternalHandleEncoder + ?Sized + HandleEncoder,
T0: Encode<Uint64, ___E>,
T1: Encode<Uint64, ___E>,
T2: Encode<AllocateMode, ___E>,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<FileAllocateRequest>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<FileAllocateRequest>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl FromWire<FileAllocateRequest> for FileAllocateRequest
impl FromWire<FileAllocateRequest> for FileAllocateRequest
Source§fn from_wire(wire: FileAllocateRequest) -> Self
fn from_wire(wire: FileAllocateRequest) -> Self
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl IntoNatural for FileAllocateRequest
impl IntoNatural for FileAllocateRequest
Source§type Natural = FileAllocateRequest
type Natural = FileAllocateRequest
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for FileAllocateRequest
impl Wire for FileAllocateRequest
Source§type Narrowed<'de> = FileAllocateRequest
type Narrowed<'de> = FileAllocateRequest
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<Self>)
fn zero_padding(out_: &mut MaybeUninit<Self>)
Writes zeroes to the padding for this type, if any.
Auto Trait Implementations§
impl Freeze for FileAllocateRequest
impl RefUnwindSafe for FileAllocateRequest
impl Send for FileAllocateRequest
impl Sync for FileAllocateRequest
impl Unpin for FileAllocateRequest
impl UnsafeUnpin 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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]