pub enum FileTreeModelBridgeError {
MissingNode(FileTreeNodeId),
Model(TreeModelError<FileTreeNodeId>),
}Expand description
Failure while constructing or updating a FileTreeModelBridge.
§Examples
use ailloli_ui_fs::{FileKind, FileMetadata, FileTreeStore, FileUri};
use ailloli_ui_widgets::files::FileTreeModelBridgeError;
let store = FileTreeStore::new(FileUri::parse("file:///")?, FileMetadata::new(FileKind::Directory))?;
let error = FileTreeModelBridgeError::MissingNode(store.root());
assert!(error.to_string().contains("missing node"));Variants§
MissingNode(FileTreeNodeId)
A store delta or traversal referenced an absent filesystem node.
Model(TreeModelError<FileTreeNodeId>)
The retained tree model rejected a structural mutation batch.
Trait Implementations§
Source§impl Debug for FileTreeModelBridgeError
impl Debug for FileTreeModelBridgeError
Source§impl Display for FileTreeModelBridgeError
impl Display for FileTreeModelBridgeError
Source§impl Error for FileTreeModelBridgeError
impl Error for FileTreeModelBridgeError
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<TreeModelError<FileTreeNodeId>> for FileTreeModelBridgeError
impl From<TreeModelError<FileTreeNodeId>> for FileTreeModelBridgeError
Source§fn from(source: TreeModelError<FileTreeNodeId>) -> Self
fn from(source: TreeModelError<FileTreeNodeId>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FileTreeModelBridgeError
impl RefUnwindSafe for FileTreeModelBridgeError
impl Send for FileTreeModelBridgeError
impl Sync for FileTreeModelBridgeError
impl Unpin for FileTreeModelBridgeError
impl UnwindSafe for FileTreeModelBridgeError
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