gstreamer

Struct PadProbeInfo

Source
pub struct PadProbeInfo<'a> {
    pub mask: PadProbeType,
    pub id: Option<PadProbeId>,
    pub offset: u64,
    pub size: u32,
    pub data: Option<PadProbeData<'a>>,
    pub flow_res: Result<FlowSuccess, FlowError>,
}

Fields§

§mask: PadProbeType§id: Option<PadProbeId>§offset: u64§size: u32§data: Option<PadProbeData<'a>>§flow_res: Result<FlowSuccess, FlowError>

Implementations§

Source§

impl PadProbeInfo<'_>

Source

pub fn buffer(&self) -> Option<&Buffer>

Source

pub fn buffer_mut(&mut self) -> Option<&mut Buffer>

Source

pub fn buffer_list(&self) -> Option<&BufferList>

Source

pub fn buffer_list_mut(&mut self) -> Option<&mut BufferList>

Source

pub fn query(&self) -> Option<&QueryRef>

Source

pub fn query_mut(&mut self) -> Option<&mut QueryRef>

Source

pub fn event(&self) -> Option<&Event>

Source

pub fn event_mut(&mut self) -> Option<&mut Event>

Source

pub fn take_buffer(&mut self) -> Option<Buffer>

Takes over the buffer in the probe info. As the data is no longer valid for the caller, the probe will be considered dropped after this point.

Source

pub fn take_buffer_list(&mut self) -> Option<BufferList>

Takes over the buffer in the probe info. As the data is no longer valid for the caller, the probe will be considered dropped after this point.

Source

pub fn take_event(&mut self) -> Option<Event>

Takes over the event in the probe info. As the data is no longer valid for the caller, the probe will be considered dropped after this point.

Trait Implementations§

Source§

impl<'a> Debug for PadProbeInfo<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for PadProbeInfo<'a>

§

impl<'a> RefUnwindSafe for PadProbeInfo<'a>

§

impl<'a> Send for PadProbeInfo<'a>

§

impl<'a> Sync for PadProbeInfo<'a>

§

impl<'a> Unpin for PadProbeInfo<'a>

§

impl<'a> !UnwindSafe for PadProbeInfo<'a>

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
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.