pub enum Error {
MissingInternalTemplate {
res_name: String,
},
AlignmentFailed {
res_name: String,
res_id: i32,
reason: String,
},
IncompleteResidueForHydro {
res_name: String,
res_id: i32,
atom_name: String,
},
BoxTooSmall,
IonizationFailed {
details: String,
},
MissingHeteroTemplate {
res_name: String,
},
TopologyAtomMissing {
res_name: String,
res_id: i32,
atom_name: String,
},
}Expand description
Error conditions surfaced by the operations layer.
Variants§
MissingInternalTemplate
Internal template lookup failed for a standard residue.
AlignmentFailed
Least-squares alignment between residue coordinates and template failed.
IncompleteResidueForHydro
Hydrogen addition could not proceed because a required anchor atom is absent.
BoxTooSmall
Simulation bounding box cannot accommodate requested solvent parameters.
IonizationFailed
Replacement of waters with ions could not reach the requested charge balance.
MissingHeteroTemplate
No heterogen template was available for the residue.
TopologyAtomMissing
Residue is missing a heavy atom mandated by the template topology.
Implementations§
Source§impl Error
impl Error
Sourcepub fn alignment_failed(
res_name: impl Into<String>,
res_id: i32,
reason: impl Into<String>,
) -> Self
pub fn alignment_failed( res_name: impl Into<String>, res_id: i32, reason: impl Into<String>, ) -> Self
Helper for constructing an Error::AlignmentFailed variant.
§Arguments
res_name- Residue name to include in the message.res_id- PDB/author residue identifier.reason- Free-form explanation of the failure.
Sourcepub fn incomplete_for_hydro(
res_name: impl Into<String>,
res_id: i32,
atom_name: impl Into<String>,
) -> Self
pub fn incomplete_for_hydro( res_name: impl Into<String>, res_id: i32, atom_name: impl Into<String>, ) -> Self
Helper for constructing an Error::IncompleteResidueForHydro variant.
§Arguments
res_name- Residue label.res_id- Residue identifier.atom_name- Anchor atom that is missing.
Sourcepub fn topology_atom_missing(
res_name: impl Into<String>,
res_id: i32,
atom_name: impl Into<String>,
) -> Self
pub fn topology_atom_missing( res_name: impl Into<String>, res_id: i32, atom_name: impl Into<String>, ) -> Self
Helper for constructing an Error::TopologyAtomMissing variant.
§Arguments
res_name- Residue name as reported to the user.res_id- Residue identifier.atom_name- The absent atom that triggered the mismatch.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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<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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.