#[repr(u32)]pub enum AdvisoryLockType {
Read = 1,
Write = 2,
Unlock = 3,
}
Variants§
Trait Implementations§
Source§impl Clone for AdvisoryLockType
impl Clone for AdvisoryLockType
Source§fn clone(&self) -> AdvisoryLockType
fn clone(&self) -> AdvisoryLockType
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 AdvisoryLockType
impl Debug for AdvisoryLockType
Source§impl Encodable for AdvisoryLockType
impl Encodable for AdvisoryLockType
Source§type Encoded = WireAdvisoryLockType
type Encoded = WireAdvisoryLockType
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 AdvisoryLockTypewhere
___E: ?Sized,
impl<___E> Encode<___E> for AdvisoryLockTypewhere
___E: ?Sized,
Source§impl From<AdvisoryLockType> for WireAdvisoryLockType
impl From<AdvisoryLockType> for WireAdvisoryLockType
Source§fn from(natural: AdvisoryLockType) -> Self
fn from(natural: AdvisoryLockType) -> Self
Converts to this type from the input type.
Source§impl From<WireAdvisoryLockType> for AdvisoryLockType
impl From<WireAdvisoryLockType> for AdvisoryLockType
Source§fn from(wire: WireAdvisoryLockType) -> Self
fn from(wire: WireAdvisoryLockType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AdvisoryLockType
impl PartialEq for AdvisoryLockType
Source§impl TakeFrom<WireAdvisoryLockType> for AdvisoryLockType
impl TakeFrom<WireAdvisoryLockType> for AdvisoryLockType
Source§fn take_from(from: &WireAdvisoryLockType) -> Self
fn take_from(from: &WireAdvisoryLockType) -> 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 moreimpl Copy for AdvisoryLockType
impl Eq for AdvisoryLockType
impl StructuralPartialEq for AdvisoryLockType
Auto Trait Implementations§
impl Freeze for AdvisoryLockType
impl RefUnwindSafe for AdvisoryLockType
impl Send for AdvisoryLockType
impl Sync for AdvisoryLockType
impl Unpin for AdvisoryLockType
impl UnwindSafe for AdvisoryLockType
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