[][src]Enum solana_libra_config::config::VMPublishingOption

pub enum VMPublishingOption {
    Locked(HashSet<[u8; 32]>),
    CustomScripts,
    Open,
}

Defines and holds the publishing policies for the VM. There are three possible configurations:

  1. No module publishing, only whitelisted scripts are allowed.
  2. No module publishing, custom scripts are allowed.
  3. Both module publishing and custom scripts are allowed. We represent these as an enum instead of a struct since whitelisting and module/script publishing are mutually exclusive options.

Variants

Locked(HashSet<[u8; 32]>)

Only allow scripts on a whitelist to be run

CustomScripts

Allow custom scripts, but not custom module publishing

Open

Allow both custom scripts and custom module publishing

Methods

impl VMPublishingOption[src]

pub fn is_open(&self) -> bool[src]

pub fn get_whitelist_set(&self) -> Option<&HashSet<[u8; 32]>>[src]

Trait Implementations

impl Clone for VMPublishingOption[src]

impl Debug for VMPublishingOption[src]

impl<'de> Deserialize<'de> for VMPublishingOption[src]

impl Serialize for VMPublishingOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> PersistableConfig for T where
    T: Serialize + DeserializeOwned + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> TestOnlyHash for T where
    T: Serialize + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,