Struct lrs::signal::SigfdInfo

Information about a signal received via a Sigfd.

Syntax

struct SigfdInfo {
    signo: u32,
    errno: i32,
    code: i32,
    pid: u32,
    uid: u32,
    fd: i32,
    tid: u32,
    band: u32,
    overrun: u32,
    trapno: u32,
    status: i32,
    int: i32,
    ptr: u64,
    utime: u64,
    stime: u64,
    addr: u64,
    addr_lsb: u16,
    padding: [u8; 46],
}

Fields

NameDescription
signo

The signal number.

errno

Unused.

code

Signal code.

pid

Sending process id.

uid

Real user id of the sending process.

fd

Ready file descriptor.

tid

Timer id.

band

Band event.

overrun

Timer overrruns.

trapno

Trap number.

status

Exit status.

int

Integer.

ptr

Pointer.

utime

User CPU time consumed.

stime

System CPU time consumed.

addr

Address that generated the signal.

addr_lsb

Least significant bit of address.

padding

Static methods

NameDescription
new

Creates a new, empty SigfdInfo.

Methods

ReceiverNameDescription
&selfsignal

Returns the signal that generated the information.

Trait implementations

NameDescription
Clone

Objects that can be duplicated.

Copy

Objects that can safely be copied via memcpy.

MaybeClone

Objects that can be duplicated.

Pod

Objects that are safe to use if they contain a random bit pattern.