Struct gstreamer_base::Adapter [−]
pub struct Adapter(_, _);
Methods
impl Adapter
[src]
impl Adapter
ⓘImportant traits for Adapterpub fn new() -> Adapter
[src]
pub fn new() -> Adapter
pub fn available(&self) -> usize
[src]
pub fn available(&self) -> usize
pub fn available_fast(&self) -> usize
[src]
pub fn available_fast(&self) -> usize
pub fn clear(&self)
[src]
pub fn clear(&self)
pub fn copy_bytes(&self, offset: usize, size: usize) -> Option<Bytes>
[src]
pub fn copy_bytes(&self, offset: usize, size: usize) -> Option<Bytes>
pub fn distance_from_discont(&self) -> u64
[src]
pub fn distance_from_discont(&self) -> u64
pub fn dts_at_discont(&self) -> ClockTime
[src]
pub fn dts_at_discont(&self) -> ClockTime
pub fn flush(&self, flush: usize)
[src]
pub fn flush(&self, flush: usize)
pub fn get_buffer(&self, nbytes: usize) -> Option<Buffer>
[src]
pub fn get_buffer(&self, nbytes: usize) -> Option<Buffer>
pub fn get_buffer_fast(&self, nbytes: usize) -> Option<Buffer>
[src]
pub fn get_buffer_fast(&self, nbytes: usize) -> Option<Buffer>
pub fn get_buffer_list(&self, nbytes: usize) -> Option<BufferList>
[src]
pub fn get_buffer_list(&self, nbytes: usize) -> Option<BufferList>
pub fn get_list(&self, nbytes: usize) -> Vec<Buffer>
[src]
pub fn get_list(&self, nbytes: usize) -> Vec<Buffer>
pub fn masked_scan_uint32(
&self,
mask: u32,
pattern: u32,
offset: usize,
size: usize
) -> isize
[src]
pub fn masked_scan_uint32(
&self,
mask: u32,
pattern: u32,
offset: usize,
size: usize
) -> isize
pub fn masked_scan_uint32_peek(
&self,
mask: u32,
pattern: u32,
offset: usize,
size: usize
) -> (isize, u32)
[src]
pub fn masked_scan_uint32_peek(
&self,
mask: u32,
pattern: u32,
offset: usize,
size: usize
) -> (isize, u32)
pub fn offset_at_discont(&self) -> u64
[src]
pub fn offset_at_discont(&self) -> u64
pub fn prev_dts(&self) -> (ClockTime, u64)
[src]
pub fn prev_dts(&self) -> (ClockTime, u64)
pub fn prev_dts_at_offset(&self, offset: usize) -> (ClockTime, u64)
[src]
pub fn prev_dts_at_offset(&self, offset: usize) -> (ClockTime, u64)
pub fn prev_offset(&self) -> (u64, u64)
[src]
pub fn prev_offset(&self) -> (u64, u64)
pub fn prev_pts(&self) -> (ClockTime, u64)
[src]
pub fn prev_pts(&self) -> (ClockTime, u64)
pub fn prev_pts_at_offset(&self, offset: usize) -> (ClockTime, u64)
[src]
pub fn prev_pts_at_offset(&self, offset: usize) -> (ClockTime, u64)
pub fn pts_at_discont(&self) -> ClockTime
[src]
pub fn pts_at_discont(&self) -> ClockTime
pub fn take_buffer(&self, nbytes: usize) -> Option<Buffer>
[src]
pub fn take_buffer(&self, nbytes: usize) -> Option<Buffer>
pub fn take_buffer_fast(&self, nbytes: usize) -> Option<Buffer>
[src]
pub fn take_buffer_fast(&self, nbytes: usize) -> Option<Buffer>
pub fn take_buffer_list(&self, nbytes: usize) -> Option<BufferList>
[src]
pub fn take_buffer_list(&self, nbytes: usize) -> Option<BufferList>
pub fn take_list(&self, nbytes: usize) -> Vec<Buffer>
[src]
pub fn take_list(&self, nbytes: usize) -> Vec<Buffer>
impl Adapter
[src]
impl Adapter
Trait Implementations
impl Clone for Adapter
impl Clone for Adapter
ⓘImportant traits for Adapterfn clone(&self) -> Adapter
fn clone(&self) -> Adapter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Hash for Adapter
impl Hash for Adapter
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for Adapter
impl Ord for Adapter
fn cmp(&self, other: &Adapter) -> Ordering
fn cmp(&self, other: &Adapter) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl StaticType for Adapter
impl StaticType for Adapter
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Adapter
impl<T: IsA<Object>> PartialEq<T> for Adapter
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Adapter
impl Eq for Adapter
impl<T: IsA<Object>> PartialOrd<T> for Adapter
impl<T: IsA<Object>> PartialOrd<T> for Adapter
fn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Debug for Adapter
impl Debug for Adapter
impl IsA<Object> for Adapter
impl IsA<Object> for Adapter
impl Default for Adapter
[src]
impl Default for Adapter
impl Read for Adapter
[src]
impl Read for Adapter
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Pull some bytes from this source into the specified buffer, returning how many bytes were read. Read more
unsafe fn initializer(&self) -> Initializer
[src]
unsafe fn initializer(&self) -> Initializer
read_initializer
)Determines if this Read
er can work with buffers of uninitialized memory. Read more
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
1.0.0[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>
Read all bytes until EOF in this source, placing them into buf
. Read more
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>
Read all bytes until EOF in this source, appending them to buf
. Read more
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
1.6.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>
Read the exact number of bytes required to fill buf
. Read more
ⓘImportant traits for &'a mut Rfn by_ref(&mut self) -> &mut Self
1.0.0[src]
fn by_ref(&mut self) -> &mut Self
Creates a "by reference" adaptor for this instance of Read
. Read more
ⓘImportant traits for Bytes<R>fn bytes(self) -> Bytes<Self>
1.0.0[src]
fn bytes(self) -> Bytes<Self>
Transforms this Read
instance to an [Iterator
] over its bytes. Read more
ⓘImportant traits for Chars<R>fn chars(self) -> Chars<Self>
[src]
fn chars(self) -> Chars<Self>
: Use str::from_utf8 instead: https://doc.rust-lang.org/nightly/std/str/struct.Utf8Error.html#examples
🔬 This is a nightly-only experimental API. (io
)
the semantics of a partial read/write of where errors happen is currently unclear and may change
Transforms this Read
instance to an [Iterator
] over [char
]s. Read more
ⓘImportant traits for Chain<T, U>fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
1.0.0[src]
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read,
Creates an adaptor which will chain this stream with another. Read more
ⓘImportant traits for Take<T>fn take(self, limit: u64) -> Take<Self>
1.0.0[src]
fn take(self, limit: u64) -> Take<Self>
Creates an adaptor which will read at most limit
bytes from it. Read more