#[repr(u32)]pub enum DependencyType {
Strong = 1,
Weak = 2,
}
Expand description
Describes the type of dependency implied by the capability.
Variants§
Trait Implementations§
Source§impl Clone for DependencyType
impl Clone for DependencyType
Source§fn clone(&self) -> DependencyType
fn clone(&self) -> DependencyType
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 DependencyType
impl Debug for DependencyType
Source§impl Encodable for DependencyType
impl Encodable for DependencyType
Source§type Encoded = WireDependencyType
type Encoded = WireDependencyType
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 DependencyTypewhere
___E: ?Sized,
impl<___E> Encode<___E> for DependencyTypewhere
___E: ?Sized,
Source§impl From<DependencyType> for WireDependencyType
impl From<DependencyType> for WireDependencyType
Source§fn from(natural: DependencyType) -> Self
fn from(natural: DependencyType) -> Self
Converts to this type from the input type.
Source§impl From<WireDependencyType> for DependencyType
impl From<WireDependencyType> for DependencyType
Source§fn from(wire: WireDependencyType) -> Self
fn from(wire: WireDependencyType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DependencyType
impl PartialEq for DependencyType
Source§impl TakeFrom<WireDependencyType> for DependencyType
impl TakeFrom<WireDependencyType> for DependencyType
Source§fn take_from(from: &WireDependencyType) -> Self
fn take_from(from: &WireDependencyType) -> 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 DependencyType
impl Eq for DependencyType
impl StructuralPartialEq for DependencyType
Auto Trait Implementations§
impl Freeze for DependencyType
impl RefUnwindSafe for DependencyType
impl Send for DependencyType
impl Sync for DependencyType
impl Unpin for DependencyType
impl UnwindSafe for DependencyType
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