pub enum CommandEffect {
Read,
DocumentMutation,
WorkspaceMutation,
FilesystemWrite,
NetworkDisclosure,
DeviceCapture,
ExternalCharge,
PackageLifecycle,
}Expand description
Individual effect of an executed command.
Variants§
Read
Read-only inspection of document, workspace, or session state.
DocumentMutation
Mutation confined to the active document state.
WorkspaceMutation
Mutation to workspace, catalog, or project state outside the document.
FilesystemWrite
Persistent write to local storage, OPFS, or filesystem.
NetworkDisclosure
Disclosure of data or telemetry over network or remote transport.
DeviceCapture
Capture from hardware device (camera, microphone, tablet, keyboard).
ExternalCharge
Invocation causing external financial charge or credit deduction.
PackageLifecycle
Lifecycle transition of a package, worker, or application service.
Implementations§
Source§impl CommandEffect
impl CommandEffect
Sourcepub fn from_str_strict(s: &str) -> Result<CommandEffect, ContractError>
pub fn from_str_strict(s: &str) -> Result<CommandEffect, ContractError>
Constructs from str-strict.
Trait Implementations§
Source§impl Clone for CommandEffect
impl Clone for CommandEffect
Source§fn clone(&self) -> CommandEffect
fn clone(&self) -> CommandEffect
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CommandEffect
Source§impl Debug for CommandEffect
impl Debug for CommandEffect
Source§impl<'de> Deserialize<'de> for CommandEffect
impl<'de> Deserialize<'de> for CommandEffect
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CommandEffect, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CommandEffect
impl Display for CommandEffect
impl Eq for CommandEffect
Source§impl Hash for CommandEffect
impl Hash for CommandEffect
Source§impl Ord for CommandEffect
impl Ord for CommandEffect
Source§fn cmp(&self, other: &CommandEffect) -> Ordering
fn cmp(&self, other: &CommandEffect) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CommandEffect
impl PartialEq for CommandEffect
Source§impl PartialOrd for CommandEffect
impl PartialOrd for CommandEffect
Source§impl Serialize for CommandEffect
impl Serialize for CommandEffect
Source§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
impl StructuralPartialEq for CommandEffect
Auto Trait Implementations§
impl Freeze for CommandEffect
impl RefUnwindSafe for CommandEffect
impl Send for CommandEffect
impl Sync for CommandEffect
impl Unpin for CommandEffect
impl UnsafeUnpin for CommandEffect
impl UnwindSafe for CommandEffect
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