Skip to main content

Source

Trait Source 

Source
pub trait Source {
    const UNIX_TERMINATED: bool;
    const UNIX_ABSTRACT: bool;

    // Required method
    fn header(domain: Domain, len: Socklen) -> [u8; 2];
}
Expand description

Native encoding of the two-byte address header selected by its backend.

Required Associated Constants§

Source

const UNIX_TERMINATED: bool

Whether every pathname must retain a trailing NUL inside the path field.

Source

const UNIX_ABSTRACT: bool

Whether a leading NUL selects the native abstract namespace.

Required Methods§

Source

fn header(domain: Domain, len: Socklen) -> [u8; 2]

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§