pub enum Trust {
Ordinary,
Sensitive,
Weakens(Weaker<'static>),
Weakening,
}Expand description
Who may change a field without being asked, by what a change of it can do to the person: every API decides it from the published field edit.
Variants§
Ordinary
Anyone with write access changes it.
Sensitive
A change can expose the person (what others see of them, where their data goes): it asks for confirmation first, from whoever makes it.
Weakens(Weaker<'static>)
A change one way can weaken the person’s security (a longer lock
delay, notifications shown on the lock screen): a change that way is
Self::Weakening, any other is ordinary. Which way the value is
now decides it, so without it every change counts as weakening.
Weakening
Any change can weaken the person’s security (who may control this machine): it asks for confirmation and crosses a security boundary, so a caller acting for the person (an agent, a script) needs their own grant for it.
Implementations§
Trait Implementations§
impl Copy for Trust
impl Eq for Trust
Source§impl Ord for Trust
impl Ord for Trust
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Trust
impl PartialOrd for Trust
impl StructuralPartialEq for Trust
Auto Trait Implementations§
impl Forget for Trust
impl Freeze for Trust
impl Move for Trust
impl RefUnwindSafe for Trust
impl Send for Trust
impl Sync for Trust
impl Unpin for Trust
impl UnsafeUnpin for Trust
impl UnwindSafe for Trust
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more