#[non_exhaustive]pub struct RtmpClientConfig {
pub target: RtmpTarget,
pub timeouts: Timeouts,
}Available on crate feature
tokio only.Expand description
What an AsyncRtmpClient is configured by: the publish target 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).
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) -> Self
pub fn new(target: RtmpTarget) -> Self
A config publishing to target, with the default 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 RtmpClientConfig
impl Move for RtmpClientConfig
impl RefUnwindSafe for RtmpClientConfig
impl Send for RtmpClientConfig
impl Sync for RtmpClientConfig
impl Unpin for RtmpClientConfig
impl UnsafeUnpin for RtmpClientConfig
impl UnwindSafe for RtmpClientConfig
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