pub struct OutputInfoBuilder<D: Outputable> { /* private fields */ }Expand description
The OutputInfoBuilder that handles creating the OutputInfo object.
For each trait that is implemented for the Output, it needs to be enabled
using this builder. If an struct called FocusFilter implements
CreateOutput and GetNameOutput it would need to enable those features.
let output = load_context
.create_output_builder::<FocusFilter>()
.enable_get_name()
.enable_create()
.build();Implementations§
Source§impl<D: Outputable> OutputInfoBuilder<D>
impl<D: Outputable> OutputInfoBuilder<D>
pub fn build(self) -> OutputInfo
Source§impl<D: Outputable + GetNameOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetNameOutput> OutputInfoBuilder<D>
pub fn enable_get_name(self) -> Self
Source§impl<D: Outputable + RawVideoOutput> OutputInfoBuilder<D>
impl<D: Outputable + RawVideoOutput> OutputInfoBuilder<D>
pub fn enable_raw_video(self) -> Self
Source§impl<D: Outputable + RawAudioOutput> OutputInfoBuilder<D>
impl<D: Outputable + RawAudioOutput> OutputInfoBuilder<D>
pub fn enable_raw_audio(self) -> Self
Source§impl<D: Outputable + RawAudio2Output> OutputInfoBuilder<D>
impl<D: Outputable + RawAudio2Output> OutputInfoBuilder<D>
pub fn enable_raw_audio2(self) -> Self
Source§impl<D: Outputable + EncodedPacketOutput> OutputInfoBuilder<D>
impl<D: Outputable + EncodedPacketOutput> OutputInfoBuilder<D>
pub fn enable_encoded_packet(self) -> Self
Source§impl<D: Outputable + UpdateOutput> OutputInfoBuilder<D>
impl<D: Outputable + UpdateOutput> OutputInfoBuilder<D>
pub fn enable_update(self) -> Self
Source§impl<D: Outputable + GetDefaultsOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetDefaultsOutput> OutputInfoBuilder<D>
pub fn enable_get_defaults(self) -> Self
Source§impl<D: Outputable + GetPropertiesOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetPropertiesOutput> OutputInfoBuilder<D>
pub fn enable_get_properties(self) -> Self
Source§impl<D: Outputable + GetTotalBytesOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetTotalBytesOutput> OutputInfoBuilder<D>
pub fn enable_get_total_bytes(self) -> Self
Source§impl<D: Outputable + GetDroppedFramesOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetDroppedFramesOutput> OutputInfoBuilder<D>
pub fn enable_get_dropped_frames(self) -> Self
Source§impl<D: Outputable + GetCongestionOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetCongestionOutput> OutputInfoBuilder<D>
pub fn enable_get_congestion(self) -> Self
Source§impl<D: Outputable + GetConnectTimeMsOutput> OutputInfoBuilder<D>
impl<D: Outputable + GetConnectTimeMsOutput> OutputInfoBuilder<D>
pub fn enable_get_connect_time_ms(self) -> Self
Auto Trait Implementations§
impl<D> Freeze for OutputInfoBuilder<D>
impl<D> RefUnwindSafe for OutputInfoBuilder<D>where
D: RefUnwindSafe,
impl<D> !Send for OutputInfoBuilder<D>
impl<D> !Sync for OutputInfoBuilder<D>
impl<D> Unpin for OutputInfoBuilder<D>where
D: Unpin,
impl<D> UnwindSafe for OutputInfoBuilder<D>where
D: UnwindSafe,
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