Skip to main content

ControlRegion

Struct ControlRegion 

Source
pub struct ControlRegion {
    pub data: ControlRegionData,
    /* private fields */
}

Fields§

§data: ControlRegionData

Implementations§

Source§

impl ControlRegion

Source

pub unsafe fn init(this: *mut Self)

Initialize a new control region with default values

§Safety

This function uses std::ptr::write to initialize the structure. The caller must ensure:

  • this points to properly allocated and aligned memory
  • The memory is writable and not accessed by other threads during initialization
  • This is called only once before any other access
Source

pub fn backpressure(&self) -> f32

Source

pub fn set_backpressure(&self, value: f32)

Source

pub fn increment_client_count(&self) -> u32

Source

pub fn decrement_client_count(&self) -> u32

Source

pub fn set_daemon_alive(&self, alive: bool)

Source

pub fn is_daemon_alive(&self) -> bool

Source

pub fn client_count(&self) -> u32

Source

pub fn version(&self) -> u16

Source

pub fn client_head(&self) -> u64

Source

pub fn set_client_head(&self, pos: u64)

Source

pub fn daemon_tail(&self) -> u64

Source

pub fn set_daemon_tail(&self, pos: u64)

Source

pub fn client_seq(&self) -> u64

Source

pub fn increment_client_seq(&self) -> u64

Source

pub fn daemon_seq(&self) -> u64

Source

pub fn increment_daemon_seq(&self) -> u64

Source

pub fn client_futex(&self) -> u32

Source

pub fn set_client_futex(&self, val: u32)

Source

pub fn daemon_futex(&self) -> u32

Source

pub fn set_daemon_futex(&self, val: u32)

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.