pub enum NamespaceError {
Show 13 variants
EmptyId {
kind: &'static str,
},
IllegalName(String),
MissingDir(DirId),
MissingCell(CellId),
MissingDirRecord(DirId),
NameCollision {
parent: DirId,
name: NamespaceName,
},
MissingReservation {
parent: DirId,
name: NamespaceName,
},
CounterCorruption {
parent: DirId,
kind: GeneratedNameKind,
candidate: NamespaceName,
},
WriterAlreadyActive,
InvalidWriterLane,
RootDirCannotMove,
DirMoveCycle {
dir: DirId,
new_parent: DirId,
},
DirNotEmpty(DirId),
}Expand description
Typed failures for backend-neutral expression-tree namespace records.
Variants§
EmptyId
An id constructor received empty text.
IllegalName(String)
A child name is not legal as a canonical Table path segment.
MissingDir(DirId)
A parent directory is unknown to this namespace.
MissingCell(CellId)
A cell is unknown to this namespace.
MissingDirRecord(DirId)
A directory is unknown to this namespace.
NameCollision
A child name is already occupied under the parent directory.
Fields
name: NamespaceNameThe conflicting child name.
MissingReservation
A cell record cannot be created without a durable name reservation.
Fields
name: NamespaceNameThe child name that was not reserved.
CounterCorruption
A recovered generated-name counter is behind durable namespace state.
Fields
kind: GeneratedNameKindThe generated-name family whose counter is corrupt.
candidate: NamespaceNameThe occupied candidate produced by the corrupt counter.
WriterAlreadyActive
Another writer lane is already active.
InvalidWriterLane
The caller supplied no valid writer lane.
RootDirCannotMove
The root directory cannot be renamed or moved.
DirMoveCycle
A directory cannot be moved below itself.
DirNotEmpty(DirId)
A directory must be empty before it can be deleted.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§fn clone(&self) -> NamespaceError
fn clone(&self) -> NamespaceError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more