pub enum DeleteSelectionError {
Rejected {
diagnostics: Vec<Diagnostic>,
},
Dispatch(DispatchError),
}Expand description
Error returned when a delete-selection request could not be committed.
Variants§
Rejected
Rules rejected the selected elements.
Fields
§
diagnostics: Vec<Diagnostic>Diagnostics produced by the delete rules.
Dispatch(DispatchError)
Store dispatch failed after rules accepted the delete plan.
Implementations§
Source§impl DeleteSelectionError
impl DeleteSelectionError
Sourcepub fn diagnostics(&self) -> Option<&[Diagnostic]>
pub fn diagnostics(&self) -> Option<&[Diagnostic]>
Returns rule diagnostics when the request was rejected by delete policy.
Trait Implementations§
Source§impl Debug for DeleteSelectionError
impl Debug for DeleteSelectionError
Source§impl Display for DeleteSelectionError
impl Display for DeleteSelectionError
Source§impl Error for DeleteSelectionError
impl Error for DeleteSelectionError
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()
Source§impl From<DeleteSelectionError> for KeyboardActionError
impl From<DeleteSelectionError> for KeyboardActionError
Source§fn from(source: DeleteSelectionError) -> Self
fn from(source: DeleteSelectionError) -> Self
Converts to this type from the input type.
Source§impl From<DispatchError> for DeleteSelectionError
impl From<DispatchError> for DeleteSelectionError
Source§fn from(source: DispatchError) -> Self
fn from(source: DispatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeleteSelectionError
impl RefUnwindSafe for DeleteSelectionError
impl Send for DeleteSelectionError
impl Sync for DeleteSelectionError
impl Unpin for DeleteSelectionError
impl UnsafeUnpin for DeleteSelectionError
impl UnwindSafe for DeleteSelectionError
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