pub struct Notifier<NV: NotifyView> {
pub out: BufWriter<Stdout>,
pub err: BufWriter<Stderr>,
pub name: String,
/* private fields */
}Fields§
§out: BufWriter<Stdout>§err: BufWriter<Stderr>§name: StringImplementations§
Trait Implementations§
Source§impl<NV: NotifyView> Logger for Notifier<NV>
impl<NV: NotifyView> Logger for Notifier<NV>
fn print_result(&mut self, res: &Result<()>) -> Result<()>
fn log(&mut self, args: Arguments<'_>, level: Level) -> Result<()>
fn add_indent(&mut self)
fn pop_indent(&mut self)
fn max_level(&self) -> LevelFilter
fn register_debug(&self)
fn handle_exit(&mut self, res: &Result<()>) -> !
Source§impl<NV: NotifyView> View for Notifier<NV>
impl<NV: NotifyView> View for Notifier<NV>
type Logger = Notifier<NV>
fn ask_existing(&mut self, torrent: &[u8], modified: u64) -> Result<bool>
fn torrent_action_ok<IT>( &mut self, _torrents: IT, _action: Action, ) -> Result<()>
fn torrent_add_result(&mut self, res: &TorrentAddResult) -> Result<()>
fn log(&mut self) -> &mut Self::Logger
Auto Trait Implementations§
impl<NV> Freeze for Notifier<NV>where
NV: Freeze,
impl<NV> RefUnwindSafe for Notifier<NV>where
NV: RefUnwindSafe,
impl<NV> Send for Notifier<NV>where
NV: Send,
impl<NV> Sync for Notifier<NV>where
NV: Sync,
impl<NV> Unpin for Notifier<NV>where
NV: Unpin,
impl<NV> UnsafeUnpin for Notifier<NV>where
NV: UnsafeUnpin,
impl<NV> UnwindSafe for Notifier<NV>where
NV: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more