#[non_exhaustive]pub struct RtmpClientConfig {
pub target: RtmpTarget,
pub session: RtmpClientConfig,
pub timeouts: Timeouts,
}Available on crate feature
tokio only.Expand description
What an AsyncRtmpClient is configured by: the publish target and the
session settings and the Timeouts on every awaited I/O. Build it with
RtmpClientConfig::new and with_timeouts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.target: RtmpTargetThe server to publish to (app, stream key, tcUrl).
session: RtmpClientConfigThe settings the ClientSession is built from; app, stream_key and tc_url are
replaced by the target’s.
timeouts: TimeoutsBounds on every awaited I/O; connect bounds the DNS lookup and TCP
connect.
Implementations§
Source§impl RtmpClientConfig
impl RtmpClientConfig
Sourcepub fn new(
target: RtmpTarget,
session: SessionClientConfig,
timeouts: Timeouts,
) -> Self
pub fn new( target: RtmpTarget, session: SessionClientConfig, timeouts: Timeouts, ) -> Self
A config publishing to target with the caller’s session settings, bounded by the
caller’s timeouts.
Sourcepub fn with_timeouts(self, timeouts: Timeouts) -> Self
pub fn with_timeouts(self, timeouts: Timeouts) -> Self
Replace RtmpClientConfig::timeouts.
Trait Implementations§
Source§impl Clone for RtmpClientConfig
impl Clone for RtmpClientConfig
Auto Trait Implementations§
impl Forget for RtmpClientConfig
impl Freeze for RtmpClientConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(DamageKind, Disposition)>: Freeze,
impl Move for RtmpClientConfig
impl RefUnwindSafe for RtmpClientConfig
impl Send for RtmpClientConfigwhere
RawVecInner: Send,
impl Sync for RtmpClientConfigwhere
RawVecInner: Sync,
impl Unpin for RtmpClientConfig
impl UnsafeUnpin for RtmpClientConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(DamageKind, Disposition)>: UnsafeUnpin,
impl UnwindSafe for RtmpClientConfigwhere
RawVecInner: 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