pub struct AdvisoryLockRange {
pub origin: SeekOrigin,
pub offset: i64,
pub length: i64,
}
Fields§
§origin: SeekOrigin
§offset: i64
§length: i64
Trait Implementations§
Source§impl Clone for AdvisoryLockRange
impl Clone for AdvisoryLockRange
Source§fn clone(&self) -> AdvisoryLockRange
fn clone(&self) -> AdvisoryLockRange
Returns a copy 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 AdvisoryLockRange
impl Debug for AdvisoryLockRange
Source§impl Encodable for AdvisoryLockRange
impl Encodable for AdvisoryLockRange
Source§type Encoded = WireAdvisoryLockRange
type Encoded = WireAdvisoryLockRange
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<AdvisoryLockRange>
impl EncodableOption for Box<AdvisoryLockRange>
Source§type EncodedOption = WireBox<WireAdvisoryLockRange>
type EncodedOption = WireBox<WireAdvisoryLockRange>
The wire type for the optional value.
Source§impl<___E> Encode<___E> for AdvisoryLockRangewhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<___E> for AdvisoryLockRangewhere
___E: InternalHandleEncoder + ?Sized,
Source§impl<___E> EncodeOption<___E> for Box<AdvisoryLockRange>where
___E: Encoder + ?Sized,
AdvisoryLockRange: Encode<___E>,
impl<___E> EncodeOption<___E> for Box<AdvisoryLockRange>where
___E: Encoder + ?Sized,
AdvisoryLockRange: 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<WireAdvisoryLockRange> for AdvisoryLockRange
impl TakeFrom<WireAdvisoryLockRange> for AdvisoryLockRange
Source§fn take_from(from: &WireAdvisoryLockRange) -> Self
fn take_from(from: &WireAdvisoryLockRange) -> 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 AdvisoryLockRange
impl RefUnwindSafe for AdvisoryLockRange
impl Send for AdvisoryLockRange
impl Sync for AdvisoryLockRange
impl Unpin for AdvisoryLockRange
impl UnwindSafe for AdvisoryLockRange
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