#[non_exhaustive]pub enum EffectKind {
FsRead,
FsWrite,
DbRead,
DbWrite,
NetOutbound,
ExecWasm,
ExecNative,
SecretUse,
BrowserSubmit,
CommSend,
CredentialExchange,
}Expand description
效应种类。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FsRead
读本地文件。
FsWrite
写本地文件。
DbRead
读数据库。
DbWrite
写数据库。
NetOutbound
出站网络。
ExecWasm
Wasm 执行。
ExecNative
原生进程执行。
SecretUse
使用 secret(走 lease)。
BrowserSubmit
在浏览器中提交表单 / 发送消息。
CommSend
向第三方通讯渠道发送(邮件 / IM / PR comment)。
CredentialExchange
凭据交换 / OAuth 回调等。
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
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 EffectKind
Source§impl Debug for EffectKind
impl Debug for EffectKind
Source§impl<'de> Deserialize<'de> for EffectKind
impl<'de> Deserialize<'de> for EffectKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EffectKind
Source§impl Hash for EffectKind
impl Hash for EffectKind
Source§impl PartialEq for EffectKind
impl PartialEq for EffectKind
Source§fn eq(&self, other: &EffectKind) -> bool
fn eq(&self, other: &EffectKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EffectKind
impl Serialize for EffectKind
impl StructuralPartialEq for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnsafeUnpin for EffectKind
impl UnwindSafe for EffectKind
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