pub struct HostStreamConfigRequest { /* private fields */ }Expand description
Request supplied to a host backend when opening a stream.
Implementations§
Source§impl HostStreamConfigRequest
impl HostStreamConfigRequest
Sourcepub fn new(
backend: Symbol,
device: Symbol,
media: StreamMedia,
direction: HostDirection,
buffer: BufferPolicy,
) -> Self
pub fn new( backend: Symbol, device: Symbol, media: StreamMedia, direction: HostDirection, buffer: BufferPolicy, ) -> Self
Builds an open request for device on backend with a server-frame
clock and reconnect disabled.
Sourcepub fn with_clock(self, clock: Symbol) -> Self
pub fn with_clock(self, clock: Symbol) -> Self
Overrides the requested clock-domain symbol.
Sourcepub fn with_reconnect(self, reconnect: HostReconnectPolicy) -> Self
pub fn with_reconnect(self, reconnect: HostReconnectPolicy) -> Self
Overrides the requested reconnect policy.
Sourcepub fn media(&self) -> StreamMedia
pub fn media(&self) -> StreamMedia
Returns the requested stream media.
Sourcepub fn direction(&self) -> HostDirection
pub fn direction(&self) -> HostDirection
Returns the requested stream direction.
Sourcepub fn buffer(&self) -> &BufferPolicy
pub fn buffer(&self) -> &BufferPolicy
Returns the requested buffer policy.
Sourcepub fn reconnect(&self) -> &HostReconnectPolicy
pub fn reconnect(&self) -> &HostReconnectPolicy
Returns the requested reconnect policy.
Trait Implementations§
Source§impl Clone for HostStreamConfigRequest
impl Clone for HostStreamConfigRequest
Source§fn clone(&self) -> HostStreamConfigRequest
fn clone(&self) -> HostStreamConfigRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HostStreamConfigRequest
impl Debug for HostStreamConfigRequest
impl Eq for HostStreamConfigRequest
Source§impl PartialEq for HostStreamConfigRequest
impl PartialEq for HostStreamConfigRequest
Source§fn eq(&self, other: &HostStreamConfigRequest) -> bool
fn eq(&self, other: &HostStreamConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HostStreamConfigRequest
Auto Trait Implementations§
impl Freeze for HostStreamConfigRequest
impl RefUnwindSafe for HostStreamConfigRequest
impl Send for HostStreamConfigRequest
impl Sync for HostStreamConfigRequest
impl Unpin for HostStreamConfigRequest
impl UnsafeUnpin for HostStreamConfigRequest
impl UnwindSafe for HostStreamConfigRequest
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