#[non_exhaustive]pub struct RtmpServerConfig {
pub session: RtmpServerConfig,
pub timeouts: Timeouts,
}Available on crate feature
tokio only.Expand description
What an AsyncRtmpServer is configured by: the sans-IO session settings
and the Timeouts on every awaited I/O. Build it from
RtmpServerConfig::default with with_session 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.session: RtmpServerConfigThe settings each accepted connection’s ServerSession is built from.
timeouts: TimeoutsBounds on every awaited I/O of every accepted connection.
Implementations§
Source§impl RtmpServerConfig
impl RtmpServerConfig
Sourcepub fn with_session(self, session: RtmpServerConfig) -> Self
pub fn with_session(self, session: RtmpServerConfig) -> Self
Replace RtmpServerConfig::session.
Sourcepub fn with_timeouts(self, timeouts: Timeouts) -> Self
pub fn with_timeouts(self, timeouts: Timeouts) -> Self
Replace RtmpServerConfig::timeouts.
Trait Implementations§
Source§impl Clone for RtmpServerConfig
impl Clone for RtmpServerConfig
Source§impl Debug for RtmpServerConfig
impl Debug for RtmpServerConfig
Auto Trait Implementations§
impl Forget for RtmpServerConfig
impl Freeze for RtmpServerConfig
impl Move for RtmpServerConfig
impl RefUnwindSafe for RtmpServerConfig
impl Send for RtmpServerConfig
impl Sync for RtmpServerConfig
impl Unpin for RtmpServerConfig
impl UnsafeUnpin for RtmpServerConfig
impl UnwindSafe for RtmpServerConfig
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