pub enum TrustLevel {
Untrusted,
TrustedSource,
HostInternal,
}Expand description
The trust level of a source, gating capabilities beyond mere possession.
Even a granted capability may be denied when trust is insufficient; see
ReadPolicy::require.
Variants§
Untrusted
Untrusted input; eval-class capabilities are denied even if granted.
TrustedSource
A source trusted to request evaluation.
HostInternal
The host itself, the most trusted level.
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
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 TrustLevel
Source§impl Debug for TrustLevel
impl Debug for TrustLevel
Source§impl Default for TrustLevel
impl Default for TrustLevel
Source§fn default() -> TrustLevel
fn default() -> TrustLevel
Returns the “default value” for a type. Read more
impl Eq for TrustLevel
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§fn eq(&self, other: &TrustLevel) -> bool
fn eq(&self, other: &TrustLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnsafeUnpin for TrustLevel
impl UnwindSafe for TrustLevel
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