pub struct AdvisoryLockRequest {
pub type_: Option<AdvisoryLockType>,
pub range: Option<AdvisoryLockRange>,
pub wait: Option<bool>,
}
Fields§
§type_: Option<AdvisoryLockType>
§range: Option<AdvisoryLockRange>
§wait: Option<bool>
Trait Implementations§
Source§impl Clone for AdvisoryLockRequest
impl Clone for AdvisoryLockRequest
Source§fn clone(&self) -> AdvisoryLockRequest
fn clone(&self) -> AdvisoryLockRequest
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 AdvisoryLockRequest
impl Debug for AdvisoryLockRequest
Source§impl Encodable for AdvisoryLockRequest
impl Encodable for AdvisoryLockRequest
Source§type Encoded = WireAdvisoryLockRequest
type Encoded = WireAdvisoryLockRequest
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<___E> Encode<___E> for AdvisoryLockRequestwhere
___E: Encoder + ?Sized,
impl<___E> Encode<___E> for AdvisoryLockRequestwhere
___E: Encoder + ?Sized,
Source§impl TakeFrom<WireAdvisoryLockRequest> for AdvisoryLockRequest
impl TakeFrom<WireAdvisoryLockRequest> for AdvisoryLockRequest
Source§fn take_from(from: &WireAdvisoryLockRequest) -> Self
fn take_from(from: &WireAdvisoryLockRequest) -> 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 AdvisoryLockRequest
impl RefUnwindSafe for AdvisoryLockRequest
impl Send for AdvisoryLockRequest
impl Sync for AdvisoryLockRequest
impl Unpin for AdvisoryLockRequest
impl UnwindSafe for AdvisoryLockRequest
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