pub struct FileAllocateRequest {
pub offset: u64,
pub length: u64,
pub mode: AllocateMode,
}
Fields§
§offset: u64
§length: u64
§mode: AllocateMode
Trait Implementations§
Source§impl CompatFrom<FileAllocateRequest> for FileAllocateRequest
impl CompatFrom<FileAllocateRequest> for FileAllocateRequest
Source§fn compat_from(value: FileAllocateRequest) -> Self
fn compat_from(value: FileAllocateRequest) -> Self
Converts
value
into a value of this type.Source§impl CompatFrom<FileAllocateRequest> for FileAllocateRequest
impl CompatFrom<FileAllocateRequest> for FileAllocateRequest
Source§fn compat_from(value: FileAllocateRequest) -> Self
fn compat_from(value: FileAllocateRequest) -> Self
Converts
value
into a value of this type.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, Self::Encoded> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, Self::Encoded> = _
Whether the conversion from
Self
to Self::Encoded
is equivalent to copying the raw bytes
of Self
. Read moreSource§impl EncodableOption for FileAllocateRequest
impl EncodableOption for FileAllocateRequest
Source§type EncodedOption = WireBox<'static, WireFileAllocateRequest>
type EncodedOption = WireBox<'static, 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 FileAllocateRequestwhere
___E: Encoder + ?Sized,
FileAllocateRequest: Encode<___E>,
impl<___E> EncodeOption<___E> for FileAllocateRequestwhere
___E: Encoder + ?Sized,
FileAllocateRequest: Encode<___E>,
Source§fn encode_option(
this: Option<Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl FromWire<WireFileAllocateRequest> for FileAllocateRequest
impl FromWire<WireFileAllocateRequest> for FileAllocateRequest
Source§fn from_wire(wire: WireFileAllocateRequest) -> Self
fn from_wire(wire: WireFileAllocateRequest) -> Self
Converts the given
wire
to this type.§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl PartialEq for FileAllocateRequest
impl PartialEq for FileAllocateRequest
impl StructuralPartialEq for FileAllocateRequest
Auto 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
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, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<WireBox<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
fn from_wire_option(wire: WireBox<'_, W>) -> Option<T>
Converts the given
wire
to an option of this type.§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
]