#[repr(transparent)]pub struct OwnershipUpdateMode(pub u32);
Tuple Fields§
§0: u32
Implementations§
Source§impl OwnershipUpdateMode
impl OwnershipUpdateMode
pub const Open: OwnershipUpdateMode
pub const UnlockSelf: OwnershipUpdateMode
pub const SelfVersion: OwnershipUpdateMode
pub const NewVersion: OwnershipUpdateMode
Trait Implementations§
Source§impl Binary for OwnershipUpdateMode
impl Binary for OwnershipUpdateMode
Source§impl Clone for OwnershipUpdateMode
impl Clone for OwnershipUpdateMode
Source§fn clone(&self) -> OwnershipUpdateMode
fn clone(&self) -> OwnershipUpdateMode
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 OwnershipUpdateMode
impl Debug for OwnershipUpdateMode
Source§impl Default for OwnershipUpdateMode
impl Default for OwnershipUpdateMode
Source§impl<'de> Deserialize<'de> for OwnershipUpdateMode
impl<'de> Deserialize<'de> for OwnershipUpdateMode
Source§fn deserialize<D>(deserializer: D) -> Result<OwnershipUpdateMode, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OwnershipUpdateMode, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any
.
deserialize_any
will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Display for OwnershipUpdateMode
impl Display for OwnershipUpdateMode
Source§impl From<OwnershipUpdateMode> for u32
impl From<OwnershipUpdateMode> for u32
Source§fn from(v: OwnershipUpdateMode) -> u32
fn from(v: OwnershipUpdateMode) -> u32
Converts to this type from the input type.
Source§impl FromStr for OwnershipUpdateMode
impl FromStr for OwnershipUpdateMode
Source§impl Hash for OwnershipUpdateMode
impl Hash for OwnershipUpdateMode
Source§impl LowerHex for OwnershipUpdateMode
impl LowerHex for OwnershipUpdateMode
Source§impl Octal for OwnershipUpdateMode
impl Octal for OwnershipUpdateMode
Source§impl Ord for OwnershipUpdateMode
impl Ord for OwnershipUpdateMode
Source§fn cmp(&self, other: &OwnershipUpdateMode) -> Ordering
fn cmp(&self, other: &OwnershipUpdateMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OwnershipUpdateMode
impl PartialEq for OwnershipUpdateMode
Source§impl PartialOrd for OwnershipUpdateMode
impl PartialOrd for OwnershipUpdateMode
Source§impl Serialize for OwnershipUpdateMode
impl Serialize for OwnershipUpdateMode
Source§impl TryFrom<i16> for OwnershipUpdateMode
impl TryFrom<i16> for OwnershipUpdateMode
Source§impl TryFrom<i32> for OwnershipUpdateMode
impl TryFrom<i32> for OwnershipUpdateMode
Source§impl TryFrom<i64> for OwnershipUpdateMode
impl TryFrom<i64> for OwnershipUpdateMode
Source§impl TryFrom<i8> for OwnershipUpdateMode
impl TryFrom<i8> for OwnershipUpdateMode
Source§impl TryFrom<u16> for OwnershipUpdateMode
impl TryFrom<u16> for OwnershipUpdateMode
Source§impl TryFrom<u32> for OwnershipUpdateMode
impl TryFrom<u32> for OwnershipUpdateMode
Source§impl TryFrom<u64> for OwnershipUpdateMode
impl TryFrom<u64> for OwnershipUpdateMode
Source§impl TryFrom<u8> for OwnershipUpdateMode
impl TryFrom<u8> for OwnershipUpdateMode
Source§impl UpperHex for OwnershipUpdateMode
impl UpperHex for OwnershipUpdateMode
Source§impl ValueEnum for OwnershipUpdateMode
impl ValueEnum for OwnershipUpdateMode
impl Copy for OwnershipUpdateMode
impl Eq for OwnershipUpdateMode
impl StructuralPartialEq for OwnershipUpdateMode
Auto Trait Implementations§
impl Freeze for OwnershipUpdateMode
impl RefUnwindSafe for OwnershipUpdateMode
impl Send for OwnershipUpdateMode
impl Sync for OwnershipUpdateMode
impl Unpin for OwnershipUpdateMode
impl UnwindSafe for OwnershipUpdateMode
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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