pub trait FolderLike: Send + Sync {
// Required methods
fn namespace_id(&self) -> String;
fn label(&self) -> String;
fn kind(&self) -> &'static str;
fn path(&self) -> Option<&Path>;
fn list_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<EntryLike>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Common trait for folders and subscriptions that commands can operate on.
Required Methods§
fn namespace_id(&self) -> String
fn label(&self) -> String
fn kind(&self) -> &'static str
fn path(&self) -> Option<&Path>
fn list_entries<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<EntryLike>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".