#[repr(C)]pub struct _drmgr_priority_t {
pub struct_size: usize,
pub name: *const c_char,
pub before: *const c_char,
pub after: *const c_char,
pub priority: c_int,
}Expand description
Specifies the ordering of callbacks for \p drmgr’s events
Fields§
§struct_size: usizeThe size of the drmgr_priority_t struct
name: *const c_charA name for the callback being registered, to be used by other components when specifying their relative order. This field is mandatory.
before: *const c_charThe name of another callback that the callback being registered should precede. This field is optional and can be NULL.
after: *const c_charThe name of another callback that the callback being registered should follow. This field is optional and can be NULL.
priority: c_intThe numeric priority of the callback. This is the primary field for determining callback order, with lower numbers placed earlier in the callback invocation order. The \p before and \p after requests must have numeric priorities that are smaller than and greater than, respectively, the requesting callback. Numeric ties are invoked in unspecified order.
Trait Implementations§
Source§impl Clone for _drmgr_priority_t
impl Clone for _drmgr_priority_t
Source§fn clone(&self) -> _drmgr_priority_t
fn clone(&self) -> _drmgr_priority_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for _drmgr_priority_t
impl Debug for _drmgr_priority_t
impl Copy for _drmgr_priority_t
Auto Trait Implementations§
impl Freeze for _drmgr_priority_t
impl RefUnwindSafe for _drmgr_priority_t
impl !Send for _drmgr_priority_t
impl !Sync for _drmgr_priority_t
impl Unpin for _drmgr_priority_t
impl UnsafeUnpin for _drmgr_priority_t
impl UnwindSafe for _drmgr_priority_t
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more