Struct gstreamer::sample::SampleBuilder
source · pub struct SampleBuilder<'a> {
buffer: Option<&'a Buffer>,
buffer_list: Option<&'a BufferList>,
caps: Option<&'a Caps>,
segment: Option<&'a Segment>,
info: Option<Structure>,
}
Fields§
§buffer: Option<&'a Buffer>
§buffer_list: Option<&'a BufferList>
§caps: Option<&'a Caps>
§segment: Option<&'a Segment>
§info: Option<Structure>
Implementations§
source§impl<'a> SampleBuilder<'a>
impl<'a> SampleBuilder<'a>
pub fn buffer(self, buffer: &'a Buffer) -> Self
pub fn buffer_list(self, buffer_list: &'a BufferList) -> Self
pub fn caps(self, caps: &'a Caps) -> Self
pub fn segment<F: FormattedValueIntrinsic>( self, segment: &'a FormattedSegment<F>, ) -> Self
pub fn info(self, info: Structure) -> Self
pub fn build(self) -> Sample
Trait Implementations§
source§impl<'a> Clone for SampleBuilder<'a>
impl<'a> Clone for SampleBuilder<'a>
source§fn clone(&self) -> SampleBuilder<'a>
fn clone(&self) -> SampleBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> Freeze for SampleBuilder<'a>
impl<'a> RefUnwindSafe for SampleBuilder<'a>
impl<'a> Send for SampleBuilder<'a>
impl<'a> Sync for SampleBuilder<'a>
impl<'a> Unpin for SampleBuilder<'a>
impl<'a> UnwindSafe for SampleBuilder<'a>
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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
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 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>
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