Struct ndi::recv::RecvBuilder
source · [−]pub struct RecvBuilder { /* private fields */ }
Expand description
Builder struct for Recv
Implementations
sourceimpl RecvBuilder
impl RecvBuilder
sourcepub fn source_to_connect_to(self, source: Source) -> Self
pub fn source_to_connect_to(self, source: Source) -> Self
Choose the Source
to connect to
sourcepub fn color_format(self, color_format: RecvColorFormat) -> Self
pub fn color_format(self, color_format: RecvColorFormat) -> Self
Choose the color format of preference
sourcepub fn bandwidth(self, bandwidth: RecvBandwidth) -> Self
pub fn bandwidth(self, bandwidth: RecvBandwidth) -> Self
Select a bandwidth mode
sourcepub fn allow_video_fields(self, allow_video_fields: bool) -> Self
pub fn allow_video_fields(self, allow_video_fields: bool) -> Self
If your application does not like receiving fielded video data you can specify
false
to this value, and all video received will be de-interlaced before it is
passed to you.
sourcepub fn ndi_recv_name(self, ndi_recv_name: String) -> Self
pub fn ndi_recv_name(self, ndi_recv_name: String) -> Self
The name of the NDI receiver to create
Give your receiver a meaningful, descriptive, and unique name. This will be the name of the NDI receiver on the network. For instance, if your network machine name is called “MyMachine” and you specify this parameter as “Video Viewer”, then the NDI receiver on the network would be “MyMachine (Video Viewer)”.
Trait Implementations
sourceimpl Clone for RecvBuilder
impl Clone for RecvBuilder
sourcefn clone(&self) -> RecvBuilder
fn clone(&self) -> RecvBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for RecvBuilder
impl Send for RecvBuilder
impl Sync for RecvBuilder
impl Unpin for RecvBuilder
impl UnwindSafe for RecvBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more