Struct libspa::utils::SpaTypes

source ·
pub struct SpaTypes(pub c_uint);

Tuple Fields§

§0: c_uint

Implementations§

source§

impl SpaTypes

source

pub const None: Self = _

source

pub const Bool: Self = _

source

pub const Id: Self = _

source

pub const Int: Self = _

source

pub const Long: Self = _

source

pub const Float: Self = _

source

pub const Double: Self = _

source

pub const String: Self = _

source

pub const Bytes: Self = _

source

pub const Rectangle: Self = _

source

pub const Fraction: Self = _

source

pub const Bitmap: Self = _

source

pub const Array: Self = _

source

pub const Struct: Self = _

source

pub const Object: Self = _

source

pub const Sequence: Self = _

source

pub const Pointer: Self = _

source

pub const Fd: Self = _

source

pub const Choice: Self = _

source

pub const Pod: Self = _

source

pub const PointerBuffer: Self = _

source

pub const PointerMeta: Self = _

source

pub const PointerDict: Self = _

source

pub const EventDevice: Self = _

source

pub const EventNode: Self = _

source

pub const CommandDevice: Self = _

source

pub const CommandNode: Self = _

source

pub const ObjectParamPropInfo: Self = _

source

pub const ObjectParamProps: Self = _

source

pub const ObjectParamFormat: Self = _

source

pub const ObjectParamBuffers: Self = _

source

pub const ObjectParamMeta: Self = _

source

pub const ObjectParamIO: Self = _

source

pub const ObjectParamProfile: Self = _

source

pub const ObjectParamPortConfig: Self = _

source

pub const ObjectParamRoute: Self = _

source

pub const ObjectProfiler: Self = _

source

pub const ObjectParamLatency: Self = _

source

pub const ObjectParamProcessLatency: Self = _

source

pub const VendorPipeWire: Self = _

source

pub const VendorOther: Self = _

source

pub fn from_raw(raw: c_uint) -> Self

Obtain a SpaTypes from a raw c_uint variant.

source

pub fn as_raw(&self) -> c_uint

Get the raw c_uint representing this SpaTypes.

Trait Implementations§

source§

impl Clone for SpaTypes

source§

fn clone(&self) -> SpaTypes

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SpaTypes

source§

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

Formats the value using the given formatter. Read more
source§

impl PartialEq for SpaTypes

source§

fn eq(&self, other: &SpaTypes) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for SpaTypes

source§

impl Eq for SpaTypes

source§

impl StructuralPartialEq for SpaTypes

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

§

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>,

§

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.