Skip to main content

NodeError

Enum NodeError 

Source
#[non_exhaustive]
pub enum NodeError {
Show 162 variants NoLibrary, Exists, EmptyName, Unfinished, Copied, SeveralHere(Vec<PathBuf>), NewerFormats, NoJournal, UncleanRemoval, NoPhoneId, RemoteDrive, CloudFolder, NoSpace(SpaceId), NoSpaceNamed(String), SpacesNamed(String), SpaceSecretsElsewhere, SetUpSecretsFirst, SameSpace, MovedAlready, MoveNeedsSecrets, NotSecretThere(FieldName), TreeStays(String), NotHere(String), PersonalSpace, PersonalSpaceHeld, NoNewerChoice, NoRequest, DropRefused(DropRefusals), NoEntity(String), Ambiguous { reference: String, candidates: Vec<EntityId>, }, OwnType(TypeName), NotOfType(TypeName), OnlyType(TypeName), NotOwnType(TypeName), NoTypeDefined(TypeName), TypeInUse { kind: TypeName, entities: usize, }, OwnField(FieldName), OneValue(FieldName), NoValue(FieldName), WhichValue(FieldName), SameEntity(String), DefinesTypes(String), OwnRecord(String), Deleted(String), NotMerged(String), ExportExists(String), ExportDamaged(String), Unreadable { path: String, reason: String, }, NotAFile(String), DeviceLacksSpace, NoContent(String), SecretFile(String), NotSecretFile(String), NotSealedForSecrets(FieldName), NoCopyHere(String), NotAFileName(String), PlaceTaken(PathBuf), NotCheckedOut(String), WhichCheckout { file: String, paths: Vec<PathBuf>, }, Stale(PathBuf), Unrecorded(PathBuf), CheckedOut(PathBuf), InTree(PathBuf), TreeFile(String), NoTreeHere(String), TreeInTree(PathBuf), GitRepositoryHere(PathBuf), NotATreeFolder(PathBuf), TreeStale(Vec<String>), UnknownVersion(Vec<String>), SecretsNeeded(Vec<String>), SecretLines(String), TreeFolderGone(PathBuf), TreeEmptied(PathBuf), RepositoryChanged(String), NoRepository(String), NotACommit(String), HoldsOtherCopies(String), FolderNotEmpty(PathBuf), TreeHereAlready(PathBuf), EditedCopy(String), NotATree(String), NoRevision(String), NotText(String), NotInTree(String), UnsafePath(String), LibraryPassphrase, Locked, SecretsLocked, SecretsElsewhere, SecretsSetUp, SecretsKeyKept, SecretsAsked, SecretsNowhere, NoSecretsInCopy, NotAsked, ForeignKey, ImportStopped { entities: usize, error: Box<NodeError>, }, Export(String), Definition(DefinitionError), Keys(KeysError), Store(StoreError), Log(LogError), LongName(usize), PairingFailed(Box<NodeError>), NoSponsor, PairingExpired, InvitationFailed(Box<NodeError>), InvitationExpired, Declined, HoldsSpace(SpaceId), AdminsOnly(&'static str), NeverShared, NotAGroup(SpaceId), GroupAsAdmin, NotInGroup, ClaimNeedsDirect, ClaimNeedsEditor, NoClaim(String), NoDirectRecord, DirectRecordRefused, GroupCycle, GroupHoldsNoData, NoGroupRequest, InviterBehind, NoRole, Removed, LastAdmin, AiAgentsNotAllowed(String), NoMember(String), MovedDiffers(String), NoPurgeAsked(String), NetworkBusy, Panicked, NoOtherReplicas, NotFound, Revoked, NotListed, AiAgentMayNot(&'static str), AiAgentsNotAllowedHere, AiAgentRevoked(String), WhichDevice(String), WhichBackup(String), WhichRecoveryCode(String), NoRecoverySource(PathBuf), CodeOpensNothing, RecoveryFileChanged, RecoveryCodeRevoked, RecoveryCodeMadeElsewhere, BackupBusy, RecoveryCutShort, WhichPurge(String), CannotRestore, BackupFolder(String), NotTheBackup { path: PathBuf, name: String, }, BackupWrite(PathBuf), NotInKeystore, NotUnicode(PathBuf), Sync(SyncError), Network(NetError), Damaged(String), File { path: PathBuf, error: Error, },
}
Expand description

Why the engine could not do something.

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.
§

NoLibrary

The directory holds no library.

§

Exists

The directory holds a library already.

§

EmptyName

A name is empty, and a name is written in full.

§

Unfinished

A library was started in the directory, but starting it was cut short.

§

Copied

The directory holds only copies of replicas: made on another computer or drive, or in another folder, and brought here by a backup, a program that syncs folders, or by hand. A copy is never used as the device it was, but helps this computer become a device of its own.

§

SeveralHere(Vec<PathBuf>)

Two or more replicas in the directory are this computer’s, in these folders.

§

NewerFormats

The library’s replica, or one of its files, is of a later version than this program’s engine reads, which a newer program that shares it wrote: nothing was opened or written (storage).

§

NoJournal

A drive whose file system keeps no journal, as FAT and exFAT, where a removal without unmounting can damage a library later (technical design: drives without a journal).

§

UncleanRemoval

The drive of a replica without a journal was removed, or lost its power, while the replica was open, so that its file system may be damaged until it is checked; or a program that had it open was stopped then, which leaves the same mark.

§

NoPhoneId

An app’s own folder on a phone, whose ID the app could not read: a replica made there would never open again.

§

RemoteDrive

The directory is on a network drive, on which SQLite’s write-ahead log does not work.

§

CloudFolder

The directory is in a folder whose files a program that syncs with the cloud may take away until they are opened.

§

NoSpace(SpaceId)

The library has no such space.

§

NoSpaceNamed(String)

No space has this name, this ID or this start of an ID.

§

SpacesNamed(String)

Several spaces have this name or this start of an ID.

§

SpaceSecretsElsewhere

A secret value in a shared space whose secrets another device holds, and this one does not yet.

§

SetUpSecretsFirst

Secrets of a shared space, on a device whose own secrets are not set up yet.

§

SameSpace

A move to the space the entity is in.

§

MovedAlready

An entity moved to another space already, which moves no further from here.

§

MoveNeedsSecrets

A move of what may hold secret values, while the secrets of either space are locked, or this device holds none of them.

§

NotSecretThere(FieldName)

A move of a secret value whose field is secret where it is, and would be plain in the other space, whose admins alone make it secret.

§

TreeStays(String)

A tree, or what is in one, which moves only whole, once trees are shared: an entity of a move, or of a folder or a list that a move takes.

§

NotHere(String)

Content that this device does not hold yet.

§

PersonalSpace

What the personal space does not do, as being renamed.

§

PersonalSpaceHeld

A choice of the personal space, which every device of the user holds (technical design).

§

NoNewerChoice

A device that dropped a space and has not asked for it again, as listing it there again needs its own newer choice to hold the space.

§

NoRequest

A device that asks for no such space here, as approving a request needs (technical design).

§

DropRefused(DropRefusals)

A drop of a space that this device may not make now, with each reason (technical design).

§

NoEntity(String)

No entity has this ID, this prefix of an ID, or this name.

§

Ambiguous

Several entities have this prefix of an ID, or this name.

Fields

§reference: String

What was looked for.

§candidates: Vec<EntityId>

The entities it could be.

§

OwnType(TypeName)

The type is one of NibKeep’s own, such as those that define types, whose entities only its own commands make.

§

NotOfType(TypeName)

A type to take away from an entity that does not have it.

§

OnlyType(TypeName)

The only type of an entity, to take away: an entity keeps at least one.

§

NotOwnType(TypeName)

A type to delete or restore that is not the space’s own: a standard one, which the vocabulary installs again, or one that NibKeep or an app defines in code.

§

NoTypeDefined(TypeName)

A type to delete that no definition of the space makes, or to restore that no deleted one does.

§

TypeInUse

A type to delete that entities still have.

Fields

§kind: TypeName

The type.

§entities: usize

How many entities that are not deleted have it.

§

OwnField(FieldName)

The field is one that NibKeep reserves for its own structure.

§

OneValue(FieldName)

A field with one value was given several.

§

NoValue(FieldName)

A value to remove, or to add a form to, is not one of the field’s.

§

WhichValue(FieldName)

A form is to be added to a field that shows several values, without saying which.

§

SameEntity(String)

Entities to merge that are one already, merged or not.

§

DefinesTypes(String)

An entity to merge that defines a type or a field.

§

OwnRecord(String)

An entity to merge that is one of NibKeep’s own records of who uses the library.

§

Deleted(String)

An entity to merge, or a secret file to open or save, that is deleted.

§

NotMerged(String)

A merge to undo of an entity that was not merged into another.

§

ExportExists(String)

An export into a directory that holds something already.

§

ExportDamaged(String)

An export to import that is damaged, or none that this version reads.

§

Unreadable

A file to add that is not one, such as a folder, or that cannot be read.

Fields

§path: String

The path, as it was given.

§reason: String

Why it cannot be added.

§

NotAFile(String)

An entity to pin that is no file.

§

DeviceLacksSpace

A file to pin to a device of the person’s that does not hold the file’s space (technical design).

§

NoContent(String)

A file to check out that has no content, or is no file.

§

SecretFile(String)

A secret file to check out: NibKeep records no plain copy of one.

§

NotSecretFile(String)

An entity to read or save as a secret file that is none.

§

NotSealedForSecrets(FieldName)

Content in a secret field that was not sealed for the secrets, so that every replica of the space could read it.

§

NoCopyHere(String)

A file to check out whose content this device holds no copy of: neither in the store nor where it was found.

§

NotAFileName(String)

A file to check out into a folder whose name is no name a file can have.

§

PlaceTaken(PathBuf)

Something is where a checkout’s copy would go.

§

NotCheckedOut(String)

No checkout on this device is the one named.

§

WhichCheckout

A file checked out in several places on this device, named without saying which.

Fields

§file: String

The file, as it was given.

§paths: Vec<PathBuf>

Where its copies are.

§

Stale(PathBuf)

The edits of a checkout’s copy, made to a version that is no longer the file’s own.

§

Unrecorded(PathBuf)

A checkout to end whose copy has edits that are not recorded.

§

CheckedOut(PathBuf)

A file to add that is a checkout’s copy, whose edits checking in records.

§

InTree(PathBuf)

A file to add that is in a tree’s folder on this device, whose commits record it (technical design: trees).

§

TreeFile(String)

A file to check out that is a tree’s, whose own commands write its copies.

§

NoTreeHere(String)

A tree with no folder on this device.

§

TreeInTree(PathBuf)

A tree to start in a tree’s folder on this device, or in a folder that holds one: a tree is never inside another.

§

GitRepositoryHere(PathBuf)

A tree to start in a folder that holds a Git repository, which a tree records as a reference to its remotes rather than file by file.

§

NotATreeFolder(PathBuf)

A tree to start in the library’s own folder, or in a folder that a system reads as .git or .nib.

§

TreeStale(Vec<String>)

Paths of a tree that changed in the copy and in the tree since the copy was written, as by another device.

§

UnknownVersion(Vec<String>)

Paths of a tree whose copies were edited from a version this replica does not know, as after its index was lost.

§

SecretsNeeded(Vec<String>)

Paths of a tree whose changes are of secret files, or take in new ones, which a commit seals only with the space’s secrets unlocked (technical design: secrets in trees).

§

SecretLines(String)

A secret file of a tree whose lines were asked for without asking to show secrets.

§

TreeFolderGone(PathBuf)

A tree’s folder on this device that is gone, as when it moved: naming its new place records it.

§

TreeEmptied(PathBuf)

A commit that would delete every file of a tree, which a drive that is not there, or a folder emptied by mistake, would look like.

§

RepositoryChanged(String)

What a tree records of a Git repository changed while it was cloned.

§

NoRepository(String)

A tree records no Git repository at a path.

§

NotACommit(String)

What was to name a commit is no full commit as Git names one.

§

HoldsOtherCopies(String)

A folder of a tree to move that holds copies NibKeep wrote for other reasons, such as checkouts, which are recorded by their paths.

§

FolderNotEmpty(PathBuf)

A folder to write a tree into that holds something already.

§

TreeHereAlready(PathBuf)

A tree to write as it is on a device that has a copy of it already.

§

EditedCopy(String)

A copy of a tree’s file to write over that has edits not committed.

§

NotATree(String)

An entity named as a tree that is none.

§

NoRevision(String)

A revision that the tree does not have.

§

NotText(String)

A file of a tree whose version is no text, for what reads lines.

§

NotInTree(String)

A path that a tree holds nothing at or under.

§

UnsafePath(String)

A path that a tree may not hold or write: one that leaves its folder, goes through a link, names the library’s folder or Git’s, or that this system cannot write.

§

LibraryPassphrase

The library’s own passphrase, given to protect its secrets, or the secrets’ to protect the library.

§

Locked

A connection answered while the library is locked here, as an app’s is: the other replica is told to try again later.

§

SecretsLocked

Secret values to read, purge or protect anew, while the secrets are locked.

§

SecretsElsewhere

Secrets keys to make on a replica of a library whose secrets another replica keeps: this one asks for them instead.

§

SecretsSetUp

Secrets keys to give a library that has them already, or asks for them already.

§

SecretsKeyKept

A secrets compartment to forget, whose key the keystore still has, or that a passphrase protects: it can still be unlocked.

§

SecretsAsked

Secrets to ask for on a replica that asked already: another that holds them gives them.

§

SecretsNowhere

Secrets to ask for where no replica holds any yet: the first secret sets them up.

§

NoSecretsInCopy

A copy of a replica made elsewhere holds none of the secrets keys that the records gave its replica (technical design: copies of a replica).

§

NotAsked

Secrets to give a replica that has not asked for them, with a secrets encryption key of its own.

§

ForeignKey

Secrets to ask for or give on a replica whose record lists a key that it did not make, as only another replica of the user’s can: what it says of the secrets counts for nothing until it is added anew.

§

ImportStopped

An import that stopped after it had imported some of an export: importing it again brings in the rest.

Fields

§entities: usize

How many entities it had read, those left out included.

§error: Box<NodeError>

Why it stopped.

§

Export(String)

An export that could not be written.

§

Definition(DefinitionError)

A type cannot be defined as it is.

§

Keys(KeysError)

The library’s keys could not be unlocked or saved.

§

Store(StoreError)

A space could not be stored or read.

§

Log(LogError)

The log refused an operation.

§

LongName(usize)

A name of a device or an app is longer than pairing takes.

§

PairingFailed(Box<NodeError>)

Pairing failed after the code matched: the new replica’s first sync failed, and both sides undid what they made.

§

NoSponsor

No replica showed the pairing code on the network in time.

§

PairingExpired

No replica paired before the pairing code expired.

§

InvitationFailed(Box<NodeError>)

An invitation failed after the joiner took the space: its first sync failed, and both sides undid what they made, as far as they could.

§

InvitationExpired

Nobody joined before the invitation’s code expired.

§

Declined

The person who invites declined the one who asked.

§

HoldsSpace(SpaceId)

The library that an invitation reached holds the space already.

§

AdminsOnly(&'static str)

Only an admin of the space may do what was asked.

§

NeverShared

The personal space has no members, and is never shared.

§

NotAGroup(SpaceId)

What was asked needs a group, and the space is none.

§

GroupAsAdmin

A group is a member of a space as an editor or a viewer, never as an admin.

§

NotInGroup

Only a member of a group adds it to a space.

§

ClaimNeedsDirect

Only a direct member of a space claims its admin role.

§

ClaimNeedsEditor

Only an editor claims the admin role.

§

NoClaim(String)

The member made no claim to the admin role that stands.

§

NoDirectRecord

No admin of the space made a record there for this user, a member through a group.

§

DirectRecordRefused

The space did not take this device on the record that an admin made for its user.

§

GroupCycle

A group would hold itself, or a group that holds it.

§

GroupHoldsNoData

A group holds no entities of its own, as everyone in the spaces it is in reads it.

§

NoGroupRequest

A group has no request to join the space named.

§

InviterBehind

The device that invites a former member back has not learned yet that they left or were removed, and offers the member they were.

§

NoRole

An invitation gives a role; leaving and removing give the role none.

§

Removed

This replica’s member left the space or was removed from it, or, for an AI agent’s replica, the space allows AI agents no more: it keeps what it holds, read only.

§

LastAdmin

A space never goes without an admin.

§

AiAgentsNotAllowed(String)

A space where AI agents were chosen for allows none, and this replica’s member is no admin there to allow them.

§

NoMember(String)

The space has no such member.

§

MovedDiffers(String)

What a move made of the entity is not here, or differs from what stays.

§

NoPurgeAsked(String)

No move asked that what it left behind of the entity be purged.

§

NetworkBusy

Another program borrows the network to pair, or the program that holds the sync role keeps its endpoint, as while a long sync runs.

§

Panicked

A sync panicked, which the program that holds the sync role went on after.

§

NoOtherReplicas

The library has no other replica to sync with.

§

NotFound

A replica to sync with was not found on the network.

§

Revoked

This replica was revoked from another device: it can change nothing, and no other device syncs with it.

§

NotListed

No counting change of the library lists this replica, as when the replica that paired it was revoked without having passed the pairing on: whatever it changed would be set aside.

§

AiAgentMayNot(&'static str)

This replica is an AI agent’s, which may not do what was asked: every replica would set the change aside (technical design).

§

AiAgentsNotAllowedHere

An AI client asked to work on the user’s replica, where the person did not allow AI agents (technical design).

§

AiAgentRevoked(String)

The key of the AI client named was revoked.

§

WhichDevice(String)

A name or ID names no device or replica of the user’s, or several, or this device where another is needed.

§

WhichBackup(String)

A name or ID names no backup of the user’s, or several.

§

WhichRecoveryCode(String)

A name or ID names no recovery code of the user’s that stands, or several (technical design).

§

NoRecoverySource(PathBuf)

A folder to recover a library from that holds neither a backup nor a library of a person with a recovery code (technical design).

§

CodeOpensNothing

A recovery code that opens nothing of the folder to recover from: another library’s, or one made after the backup was last updated.

§

RecoveryFileChanged

A recovery file whose entry for the code the code did not sign, as a device that turned against its person could write while it updated the backup: what it names is not taken (technical design).

§

RecoveryCodeRevoked

A recovery code that the library revoked, which brings no device back.

§

RecoveryCodeMadeElsewhere

The secrets asked for a recovery code that another device made, which alone gives it them: a device that recovers with the code could not tell what another gave it from a key of someone’s own making (technical design).

§

BackupBusy

A backup that another program is updating, which a recovery reads once it is done.

§

RecoveryCutShort

A recovery of the library in the directory was cut short, as by a crash: its new device is known to nobody, and running the recovery again starts it over.

§

WhichPurge(String)

A name names no purge that waits on this device, or several (technical design).

§

CannotRestore

The member’s role does not allow restoring what a purge destroyed: an admin may, and an editor for the changes their member’s replicas signed.

§

BackupFolder(String)

A folder to make a backup in that holds something already, or lies in a library.

§

NotTheBackup

A folder found as a backup that is not that backup, or is damaged (technical design).

Fields

§path: PathBuf

The folder.

§name: String

The backup’s name.

§

BackupWrite(PathBuf)

A file written to a backup that did not read back as written.

§

NotInKeystore

Syncing from login, for a library whose keys a passphrase protects: nobody is there to type it at login (technical design).

§

NotUnicode(PathBuf)

A path that the list of libraries synced from login cannot hold, as it is not Unicode.

§

Sync(SyncError)

Pairing or syncing failed.

§

Network(NetError)

The network failed.

§

Damaged(String)

A file of the library is not well-formed, or missing.

§

File

A file or directory of the library could not be read or written.

Fields

§path: PathBuf

The file or directory.

§error: Error

What went wrong.

Implementations§

Source§

impl NodeError

Source

pub fn in_use(&self) -> bool

Whether the library could not be opened, or a change made, because another program, or another part of this one, has a space to itself for a moment, as while it makes its state file anew after a purge, or waits to until the others close it: the library is to be closed, and trying again later may work.

Source

pub const fn is_wrong_code(&self) -> bool

Whether a pairing or an invitation failed because the code that a device typed did not match the one shown.

Trait Implementations§

Source§

impl Debug for NodeError

Source§

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

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

impl Display for NodeError

Source§

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

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

impl Error for NodeError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Replaced by Error::source.
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<!> for NodeError

Source§

fn from(never: Infallible) -> Self

Converts to this type from the input type.
Source§

impl From<DefinitionError> for NodeError

Source§

fn from(source: DefinitionError) -> Self

Converts to this type from the input type.
Source§

impl From<KeysError> for NodeError

Source§

fn from(source: KeysError) -> Self

Converts to this type from the input type.
Source§

impl From<LogError> for NodeError

Source§

fn from(source: LogError) -> Self

Converts to this type from the input type.
Source§

impl From<NetError> for NodeError

Source§

fn from(source: NetError) -> Self

Converts to this type from the input type.
Source§

impl From<NodeError> for PointerError

Source§

fn from(source: NodeError) -> Self

Converts to this type from the input type.
Source§

impl From<StoreError> for NodeError

Source§

fn from(error: StoreError) -> Self

A space’s file of a later version is the library’s, which only an update reads.

Source§

impl From<SyncError> for NodeError

Source§

fn from(source: SyncError) -> Self

Converts to this type from the input type.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

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> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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