Trait license::Exception

source ·
pub trait Exception {
    // Required methods
    fn id(&self) -> &'static str;
    fn name(&self) -> &'static str;
    fn text(&self) -> &'static str;
    fn is_deprecated(&self) -> bool;
    fn comments(&self) -> Option<&'static str>;
    fn see_also(&self) -> &'static [&'static str];
}
Expand description

Base functionality for all license exceptions.

Required Methods§

source

fn id(&self) -> &'static str

The identifier of the exceptions.

source

fn name(&self) -> &'static str

The name of the exception.

source

fn text(&self) -> &'static str

The exception text.

source

fn is_deprecated(&self) -> bool

Says if the exception is deprecated.

source

fn comments(&self) -> Option<&'static str>

The exception comments.

source

fn see_also(&self) -> &'static [&'static str]

Relevant sources.

Trait Implementations§

source§

impl Debug for dyn Exception

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for &dyn Exception

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for dyn Exception

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl FromStr for &dyn Exception

§

type Err = ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Serialize for dyn Exception

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§

source§

impl Exception for AsteriskException

source§

impl Exception for AutoconfException2_0

source§

impl Exception for AutoconfException3_0

source§

impl Exception for AutoconfExceptionGeneric3_0

source§

impl Exception for AutoconfExceptionGeneric

source§

impl Exception for AutoconfExceptionMacro

source§

impl Exception for BisonException1_24

source§

impl Exception for BisonException2_2

source§

impl Exception for BootloaderException

source§

impl Exception for ClasspathException2_0

source§

impl Exception for ClispException2_0

source§

impl Exception for CryptsetupOpensSlException

source§

impl Exception for DigirUleFossException

source§

impl Exception for EcOsException2_0

source§

impl Exception for Exception389

source§

impl Exception for FawkesRuntimeException

source§

impl Exception for FltkException

source§

impl Exception for FmtException

source§

impl Exception for FontException2_0

source§

impl Exception for FreertosException2_0

source§

impl Exception for GccException2_0

source§

impl Exception for GccException2_0Note

source§

impl Exception for GccException3_1

source§

impl Exception for GmshException

source§

impl Exception for GnatException

source§

impl Exception for GnomeExamplesException

source§

impl Exception for GnuCompilerException

source§

impl Exception for GnuJavamailException

source§

impl Exception for Gpl3_0InterfaceException

source§

impl Exception for Gpl3_0LinkingException

source§

impl Exception for Gpl3_0LinkingSourceException

source§

impl Exception for GplCc1_0

source§

impl Exception for GstreamerException2005

source§

impl Exception for GstreamerException2008

source§

impl Exception for I2pGplJavaException

source§

impl Exception for KicAdLibrariesException

source§

impl Exception for Lgpl3_0LinkingException

source§

impl Exception for LibpriOpenh323Exception

source§

impl Exception for LibtoolException

source§

impl Exception for LinuxSyscallNote

source§

impl Exception for Llgpl

source§

impl Exception for LlvmException

source§

impl Exception for LzmaException

source§

impl Exception for MifException

source§

impl Exception for NokiaQtException1_1

source§

impl Exception for OcamlLgplLinkingException

source§

impl Exception for OcctException1_0

source§

impl Exception for OpenjDkAssemblyException1_0

source§

impl Exception for OpenvpnOpensslException

source§

impl Exception for PsOrPdfFontException20170817

source§

impl Exception for Qpl1_0Inria2004Exception

source§

impl Exception for QtGplException1_0

source§

impl Exception for QtLgplException1_1

source§

impl Exception for QwtException1_0

source§

impl Exception for SaneException

source§

impl Exception for Shl2_0

source§

impl Exception for Shl2_1

source§

impl Exception for StunnelException

source§

impl Exception for SwiException

source§

impl Exception for SwiftException

source§

impl Exception for TexinfoException

source§

impl Exception for UBootException2_0

source§

impl Exception for UbdlException

source§

impl Exception for UniversalFossException1_0

source§

impl Exception for VsftpdOpensslException

source§

impl Exception for WxwIndowsException3_1

source§

impl Exception for X11vncOpensslException