Enum tea_sdk::vmh::env::HostCommand
pub enum HostCommand {
Init(Box<HostSettings>),
Stdin(String),
UpgradeEnclave(String, String, Vec<u8>, HashMap<String, Vec<u8>>),
UpgradeClient(String, String),
Shutdown,
Export,
Import(Vec<u8>),
LoadActor(String, Vec<u8>),
EnclaveVersion,
}
Variants§
Init(Box<HostSettings>)
Stdin(String)
UpgradeEnclave(String, String, Vec<u8>, HashMap<String, Vec<u8>>)
first field is version name, second field is url, three fields downloaded execute buffer
UpgradeClient(String, String)
first field is version name, second field is url
Shutdown
Export
Import(Vec<u8>)
LoadActor(String, Vec<u8>)
EnclaveVersion
Trait Implementations§
§impl Clone for HostCommand
impl Clone for HostCommand
§fn clone(&self) -> HostCommand
fn clone(&self) -> HostCommand
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 more§impl Debug for HostCommand
impl Debug for HostCommand
§impl<'de> Deserialize<'de> for HostCommand
impl<'de> Deserialize<'de> for HostCommand
§fn deserialize<__D>(
__deserializer: __D
) -> Result<HostCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<HostCommand, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for HostCommand
impl Serialize for HostCommand
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for HostCommand
impl Send for HostCommand
impl Sync for HostCommand
impl Unpin for HostCommand
impl UnwindSafe for HostCommand
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