pub struct ConsumerSettings {
pub max_buffer: u64,
pub max_bytes: Bytes,
pub max_time: ClockTime,
pub event_types: Vec<EventType>,
}Expand description
User defined consumer settings
Defaults to:
max-buffers<-0(unlimited)max-bytes<-0(unlimited)max-time<-500msevent-types<-gst::UpstreamForceKeyUnitEventNote: force-key-unit events are always forwarded in addition to any of thegst::EventTypeset through this property
Use ConsumerSettings::builder() if you need different values.
Fields§
§max_buffer: u64§max_bytes: Bytes§max_time: ClockTime§event_types: Vec<EventType>Trait Implementations§
Source§impl Clone for ConsumerSettings
impl Clone for ConsumerSettings
Source§fn clone(&self) -> ConsumerSettings
fn clone(&self) -> ConsumerSettings
Returns a duplicate 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 moreSource§impl Debug for ConsumerSettings
impl Debug for ConsumerSettings
Source§impl Default for ConsumerSettings
impl Default for ConsumerSettings
Source§impl Hash for ConsumerSettings
impl Hash for ConsumerSettings
Source§impl PartialEq for ConsumerSettings
impl PartialEq for ConsumerSettings
impl Eq for ConsumerSettings
impl StructuralPartialEq for ConsumerSettings
Auto Trait Implementations§
impl Freeze for ConsumerSettings
impl RefUnwindSafe for ConsumerSettings
impl Send for ConsumerSettings
impl Sync for ConsumerSettings
impl Unpin for ConsumerSettings
impl UnwindSafe for ConsumerSettings
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§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