pub enum LoginCheck {
Command(Vec<String>),
Unavailable(String),
}Expand description
How the runtime asks the harness whether it is signed in for this user, without spending a turn.
Variants§
Command(Vec<String>)
Run description.binary with these arguments, the way the version check runs it, and
hand what it printed to read-login. Never empty: a driver naming no arguments is
refused at load, since the bare binary may start a session.
The harness offers no way to ask without a turn; the reason, shown to the person cut to its first line and 200 characters.
Trait Implementations§
Source§impl Clone for LoginCheck
impl Clone for LoginCheck
impl ComponentType for LoginCheck
Source§impl Debug for LoginCheck
impl Debug for LoginCheck
Source§impl<'de> Deserialize<'de> for LoginCheck
impl<'de> Deserialize<'de> for LoginCheck
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 Lift for LoginCheck
impl Lower for LoginCheck
Auto Trait Implementations§
impl Forget for LoginCheck
impl Freeze for LoginCheck
impl Move for LoginCheck
impl RefUnwindSafe for LoginCheck
impl Send for LoginCheck
impl Sync for LoginCheck
impl Unpin for LoginCheck
impl UnsafeUnpin for LoginCheck
impl UnwindSafe for LoginCheck
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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