Struct libafl::bolts::llmp::LlmpPage[][src]

#[repr(C, packed)]
pub struct LlmpPage { pub magic: u64, pub sender: u32, pub save_to_unmap: u16, pub sender_dead: u16, pub current_msg_id: u64, pub size_total: usize, pub size_used: usize, pub max_alloc_size: usize, pub messages: [LlmpMsg; 0], }

Contents of the share mem pages, used by llmp internally

Fields

magic: u64

to check if this page got initialized properly

sender: u32

The id of the sender

save_to_unmap: u16

Set to != 1 by the receiver, once it got mapped It’s not safe for the sender to unmap this page before (The os may have tidied up the memory when the receiver starts to map)

sender_dead: u16

Not used at the moment (would indicate that the sender is no longer there)

current_msg_id: u64

The current message ID

size_total: usize

How much space is available on this page in bytes

size_used: usize

How much space is used on this page in bytes

max_alloc_size: usize

The maximum amount of bytes that ever got allocated on this page in one go An inidactor of what to use as size for future pages

messages: [LlmpMsg; 0]

Pointer to the messages, from here on.

Trait Implementations

impl Clone for LlmpPage[src]

fn clone(&self) -> LlmpPage[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for LlmpPage[src]

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

Formats the value using the given formatter. Read more

impl Copy for LlmpPage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.