pub struct SignInConfig {
pub state_dir: PathBuf,
pub harness: HarnessIdentity,
}Expand description
The two values signing a harness in reads, and nothing else.
An operator signs the agent in before or after filling in the machine and
the failure detector, so printobserver sign-in reads the state directory
and the harness identity out of the server’s own file and nothing beside
them: every other value the file carries, present or not and valid or not,
is one it never looks at.
Fields§
§state_dir: PathBufWhere the state lives, and so where the harness keeps its sign-in.
harness: HarnessIdentityThe harness identity supervision turns run on.
Implementations§
Source§impl SignInConfig
impl SignInConfig
Sourcepub fn load(path: impl AsRef<Path>) -> Result<Self, ConfigError>
pub fn load(path: impl AsRef<Path>) -> Result<Self, ConfigError>
Read those two values out of one configuration file.
§Errors
Returns ConfigError::Unreadable when the file is not there,
ConfigError::Unparsable when it is not a document carrying either
value in the shape this program reads it in, and ConfigError::Field
naming state_dir or supervisor.harness when that value cannot be
accepted.
Trait Implementations§
Source§impl Clone for SignInConfig
impl Clone for SignInConfig
Source§impl Debug for SignInConfig
impl Debug for SignInConfig
impl Eq for SignInConfig
Source§impl PartialEq for SignInConfig
impl PartialEq for SignInConfig
impl StructuralPartialEq for SignInConfig
Auto Trait Implementations§
impl Forget for SignInConfig
impl Freeze for SignInConfig
impl Move for SignInConfig
impl RefUnwindSafe for SignInConfig
impl Send for SignInConfigwhere
RawVecInner: Send,
impl Sync for SignInConfigwhere
RawVecInner: Sync,
impl Unpin for SignInConfig
impl UnsafeUnpin for SignInConfig
impl UnwindSafe for SignInConfigwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.