Skip to main content

Warning

Enum Warning 

Source
#[non_exhaustive]
pub enum Warning {
Show 30 variants Recovered(Recovered), ConfigNotUpdated(Error), ParksPendingRemoval(usize), ParkedLoginRefused { tool: ProviderId, label: String, }, RenewalFailed(Error), LockCompromised { tool: ProviderId, }, AuthOverridden { tool: ProviderId, names: Vec<String>, }, FallbackLogin { tool: ProviderId, path: PathBuf, store: SecretStore, held: Held, }, WrittenOnTheCommandLine { tool: ProviderId, bytes: usize, limit: usize, }, SessionsStillRunning { from: String, holding: Vec<Holding>, }, SessionsKeepTheOldLogin { label: String, holding: Vec<Holding>, }, SessionsUnknown { tool: ProviderId, from: String, }, SessionsUnknownAfterSignIn { tool: ProviderId, label: String, }, SignInParkedNotInUse { tool: ProviderId, label: String, why: String, spelling: Spelling, }, SwitchStuck(Error), LoginReplaced { tool: ProviderId, id: String, label: String, now: Stored, }, InUseUnconfirmed { tool: ProviderId, last: Stored, named: Stored, asked: bool, }, ConfigNamesAnother { tool: ProviderId, config: Stored, in_use: Stored, }, TakenAsNamed { tool: ProviderId, label: String, recorded: Option<String>, }, SetAside { tool: ProviderId, path: PathBuf, label: Option<String>, why: SetAside, }, KeysSetAside { tool: ProviderId, path: PathBuf, label: Option<String>, }, LooksSignedOut { tool: ProviderId, label: String, }, MoveSettled(MoveSettled), MoveWaiting { tool: ProviderId, label: String, }, MoveNotGivenUp { tool: ProviderId, label: String, why: Error, }, MoveNotSettled { tool: ProviderId, label: String, why: Error, }, SignInAwaited { tool: ProviderId, label: String, put_back: String, since: i64, again: bool, }, ItemGone { tool: ProviderId, label: String, item: String, }, ReadOnly { why: Option<&'static str>, }, ReadOnlyBelowTheFloor { build: Option<u32>, },
}
Expand description

Something to know about that did not stop the operation.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Recovered(Recovered)

An interrupted switch this run found and finished or undid.

§

ConfigNotUpdated(Error)

The login moved, and the tool’s own record of who is signed in still names the last.

§

ParksPendingRemoval(usize)

§

ParkedLoginRefused

The service refuses a parked login for good, so it was dropped.

Fields

§label: String
§

RenewalFailed(Error)

§

LockCompromised

The tool’s write or refresh lock stopped being Pitboard’s during the change.

Fields

§

AuthOverridden

The tool signs in some other way than with the login Pitboard moves.

Fields

§names: Vec<String>
§

FallbackLogin

A file sits behind the tool’s store, which keeps running sessions on their account.

Fields

§path: PathBuf
§held: Held
§

WrittenOnTheCommandLine

The login was too large for security’s stdin, so it went on the argument line.

Fields

§bytes: usize
§limit: usize
§

SessionsStillRunning

What still runs the tool on from, which a switch does not reach.

Fields

§from: String
§holding: Vec<Holding>
§

SessionsKeepTheOldLogin

What still runs the tool on the login a sign-in replaced.

Fields

§label: String
§holding: Vec<Holding>
§

SessionsUnknown

The process list could not be read after a switch from from.

Fields

§from: String
§

SessionsUnknownAfterSignIn

The process list could not be read after a sign-in replaced label’s login.

Fields

§label: String
§

SignInParkedNotInUse

A sign-in was parked rather than put in use, since whose login is in use was not known.

Fields

§label: String
§spelling: Spelling
§

SwitchStuck(Error)

The refusal the next change would make over an interrupted switch.

§

LoginReplaced

A sign-in outside Pitboard replaced the only login of label; now is whose is stored.

Fields

§label: String
§

InUseUnconfirmed

The tool’s record names named since its service named last’s login; asked is false where the service was never asked since an update.

Fields

§last: Stored
§named: Stored
§asked: bool
§

ConfigNamesAnother

The tool’s record names config, and the login stored is in_use’s.

Fields

§config: Stored
§in_use: Stored
§

TakenAsNamed

A login filed under the account the app names; recorded is whose Pitboard had it as.

Fields

§label: String
§recorded: Option<String>
§

SetAside

A folder kept under parks, deleting nothing.

Fields

§path: PathBuf
§

KeysSetAside

A folder kept under parks with the keys label had before the app rewrote them.

Fields

§path: PathBuf
§

LooksSignedOut

The app’s settings look signed out since the account was read in use.

Fields

§label: String
§

MoveSettled(MoveSettled)

A move an earlier run left, settled before this change.

§

MoveWaiting

A move waits: the next change to the tool settles it first.

Fields

§label: String
§

MoveNotGivenUp

abandon gave up a switch and could not give up this move.

Fields

§label: String
§why: Error
§

MoveNotSettled

repair could not settle this move, and repaired the rest.

Fields

§label: String
§why: Error
§

SignInAwaited

The app is signed out for a sign-in inside it, with put_back parked.

Fields

§label: String
§put_back: String
§since: i64
§again: bool

A Sign In Again of label, not an add.

§

ItemGone

An item of the login was in neither place after its move.

Fields

§label: String
§item: String
§

ReadOnly

A read that changes nothing, since this process is not the person themselves.

Fields

§why: Option<&'static str>
§

ReadOnlyBelowTheFloor

A read that changes nothing, since Windows is older than Pitboard runs on.

Fields

§build: Option<u32>

Implementations§

Source§

impl Warning

Source

pub fn code(&self) -> &'static str

Stable, for a program to branch on.

Source

pub fn tool(&self) -> Option<ProviderId>

Trait Implementations§

Source§

impl Debug for Warning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Warning

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more