Skip to main content

Subject

Trait Subject 

Source
pub trait Subject:
    Clone
    + Debug
    + Send
    + Sync {
    type Namespace: Namespace;

    // Required methods
    fn namespace<'a>(&self, derived: &'a Self::Namespace) -> &'a [u8] ;
    fn message(&self) -> Bytes;
}
Expand description

Identifies the subject of a signature or certificate.

Required Associated Types§

Source

type Namespace: Namespace

Pre-computed namespace(s) for this subject type.

Required Methods§

Source

fn namespace<'a>(&self, derived: &'a Self::Namespace) -> &'a [u8]

Get the namespace bytes for this subject instance.

Source

fn message(&self) -> Bytes

Get the message bytes for this subject instance.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§