Enum TrustClass
pub enum TrustClass {
Trusted,
Untrusted,
}Expand description
Trust class resolved for the turn’s sender. Minimal for phase 1; peer-group resolution (the real source) is phase 2.
Variants§
Trusted
Sender is in a trusted peer group (or the turn is internally driven).
Untrusted
Sender is untrusted — external text to be treated as data, not instructions, when the policy says so.
Trait Implementations§
Source§impl Clone for TrustClass
impl Clone for TrustClass
Source§fn clone(&self) -> TrustClass
fn clone(&self) -> TrustClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustClass
impl Debug for TrustClass
Source§impl<'de> Deserialize<'de> for TrustClass
impl<'de> Deserialize<'de> for TrustClass
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 TrustClass
impl PartialEq for TrustClass
Source§impl Serialize for TrustClass
impl Serialize for TrustClass
impl Copy for TrustClass
impl Eq for TrustClass
impl StructuralPartialEq for TrustClass
Auto Trait Implementations§
impl Freeze for TrustClass
impl RefUnwindSafe for TrustClass
impl Send for TrustClass
impl Sync for TrustClass
impl Unpin for TrustClass
impl UnsafeUnpin for TrustClass
impl UnwindSafe for TrustClass
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