#[repr(u8)]pub enum UpgradePolicy {
Compatible = 0,
Additive = 128,
DepOnly = 192,
}Expand description
Rust representation of upgrade policy constants in iota::package.
Variants§
Compatible = 0
The least restrictive policy. Permits changes to all function implementations, the removal of ability constraints on generic type parameters in function signatures, and modifications to private, public(friend), and entry function signatures. However, public function signatures and existing types cannot be changed.
Additive = 128
Allows adding new functionalities (e.g., new public functions or structs) but restricts changes to existing functionalities.
DepOnly = 192
Limits modifications to the package’s dependencies only.
Implementations§
Trait Implementations§
Source§impl Clone for UpgradePolicy
impl Clone for UpgradePolicy
Source§fn clone(&self) -> UpgradePolicy
fn clone(&self) -> UpgradePolicy
Returns a duplicate 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 UpgradePolicy
impl Debug for UpgradePolicy
Source§impl Display for UpgradePolicy
impl Display for UpgradePolicy
Source§impl PartialEq for UpgradePolicy
impl PartialEq for UpgradePolicy
Source§impl TryFrom<u8> for UpgradePolicy
impl TryFrom<u8> for UpgradePolicy
impl Copy for UpgradePolicy
impl Eq for UpgradePolicy
impl StructuralPartialEq for UpgradePolicy
Auto Trait Implementations§
impl Freeze for UpgradePolicy
impl RefUnwindSafe for UpgradePolicy
impl Send for UpgradePolicy
impl Sync for UpgradePolicy
impl Unpin for UpgradePolicy
impl UnwindSafe for UpgradePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more