Skip to main content

Console

Trait Console 

Source
pub trait Console {
    // Required methods
    fn arguments<'valid>(&'valid self) -> &'valid [Argument];
    fn open(&self, filename: &str) -> Result<impl Descriptor, Issue>;
    fn problem(&self, threat: Threat) -> impl Synchronization;
    fn print(&self, value: impl Display) -> impl Synchronization;
    fn debug(&self, value: impl Debug) -> impl Synchronization;
}

Required Methods§

Source

fn arguments<'valid>(&'valid self) -> &'valid [Argument]

Source

fn open(&self, filename: &str) -> Result<impl Descriptor, Issue>

Source

fn problem(&self, threat: Threat) -> impl Synchronization

Source

fn print(&self, value: impl Display) -> impl Synchronization

Source

fn debug(&self, value: impl Debug) -> impl Synchronization

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§