pub enum ExposureMode {
AllowAll,
DenyAll,
Allowlist,
Blocklist,
}Expand description
Exposure mode determines how allowlist/blocklist are interpreted.
Variants§
AllowAll
All operations exposed except those in blocklist.
DenyAll
No operations exposed (allowlist/blocklist ignored).
Allowlist
Only operations in allowlist are exposed (blocklist still applies).
Blocklist
All operations exposed except those in blocklist (same as AllowAll).
Trait Implementations§
Source§impl Clone for ExposureMode
impl Clone for ExposureMode
Source§fn clone(&self) -> ExposureMode
fn clone(&self) -> ExposureMode
Returns a duplicate 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 moreSource§impl Debug for ExposureMode
impl Debug for ExposureMode
Source§impl Default for ExposureMode
impl Default for ExposureMode
Source§fn default() -> ExposureMode
fn default() -> ExposureMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExposureMode
impl<'de> Deserialize<'de> for ExposureMode
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
Source§impl PartialEq for ExposureMode
impl PartialEq for ExposureMode
Source§impl Serialize for ExposureMode
impl Serialize for ExposureMode
impl Copy for ExposureMode
impl Eq for ExposureMode
impl StructuralPartialEq for ExposureMode
Auto Trait Implementations§
impl Freeze for ExposureMode
impl RefUnwindSafe for ExposureMode
impl Send for ExposureMode
impl Sync for ExposureMode
impl Unpin for ExposureMode
impl UnsafeUnpin for ExposureMode
impl UnwindSafe for ExposureMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.