pub trait BookmarkSink: Send + Sync {
// Required methods
fn kind(&self) -> SourceKind;
fn write(
&mut self,
bookmarks: &[Bookmark],
) -> Result<WriteReport, CoreError>;
fn delete(&mut self, external_id: &str) -> Result<(), CoreError>;
}Expand description
Write-side trait. Implemented by sinks (Netscape HTML, server).
Required Methods§
Sourcefn kind(&self) -> SourceKind
fn kind(&self) -> SourceKind
What kind of sink this is.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".