Skip to main content

View

Trait View 

Source
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§

Source

fn ask_existing(&mut self, name: &[u8], modified: u64) -> Result<bool>

Source

fn torrent_add_result(&mut self, res: &TorrentAddResult) -> Result<()>

Source

fn torrent_action_ok<IT>(&mut self, torrents: IT, action: Action) -> Result<()>
where IT: IntoIterator, IT::Item: Borrow<Torrent>,

Source

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".

Implementors§