[−][src]Enum solana_libra_config::config::VMPublishingOption
Defines and holds the publishing policies for the VM. There are three possible configurations:
- No module publishing, only whitelisted scripts are allowed.
- No module publishing, custom scripts are allowed.
- 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
Only allow scripts on a whitelist to be run
Allow custom scripts, but not custom module publishing
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]
fn clone(&self) -> VMPublishingOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for VMPublishingOption
[src]
impl<'de> Deserialize<'de> for VMPublishingOption
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for VMPublishingOption
[src]
Auto Trait Implementations
impl RefUnwindSafe for VMPublishingOption
impl Send for VMPublishingOption
impl Sync for VMPublishingOption
impl Unpin for VMPublishingOption
impl UnwindSafe for VMPublishingOption
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> PersistableConfig for T where
T: Serialize + DeserializeOwned + ?Sized,
[src]
T: Serialize + DeserializeOwned + ?Sized,
fn load_config<P: AsRef<Path>>(path: P) -> Self
[src]
fn save_config<P: AsRef<Path>>(&self, output_file: P)
[src]
fn parse(serialized: &str) -> Result<Self>
[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,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> TestOnlyHash for T where
T: Serialize + ?Sized,
[src]
T: Serialize + ?Sized,
fn test_only_hash(&self) -> HashValue
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,