pub trait View {
type Logger: Logger;
// Required methods
fn ask_existing(&mut self, name: &[u8], modified: u64) -> Result<bool>;
fn torrent_add_result(&mut self, res: &TorrentAddResult) -> Result<()>;
fn torrent_action_ok<IT>(
&mut self,
torrents: IT,
action: Action,
) -> Result<()>
where IT: IntoIterator,
IT::Item: Borrow<Torrent>;
fn log(&mut self) -> &mut Self::Logger;
}Required Associated Types§
Required Methods§
fn ask_existing(&mut self, name: &[u8], modified: u64) -> Result<bool>
fn torrent_add_result(&mut self, res: &TorrentAddResult) -> Result<()>
fn torrent_action_ok<IT>(&mut self, torrents: IT, action: Action) -> Result<()>
fn log(&mut self) -> &mut Self::Logger
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".