#[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 with
RtmpServerConfig::new, then with_session.
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 new(session: RtmpServerConfig, timeouts: Timeouts) -> Self
pub fn new(session: RtmpServerConfig, timeouts: Timeouts) -> Self
A config with the caller’s session settings and timeouts.
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
Auto Trait Implementations§
impl Forget for RtmpServerConfig
impl Freeze for RtmpServerConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(DamageKind, Disposition)>: Freeze,
impl Move for RtmpServerConfig
impl RefUnwindSafe for RtmpServerConfig
impl Send for RtmpServerConfigwhere
RawVecInner: Send,
impl Sync for RtmpServerConfigwhere
RawVecInner: Sync,
impl Unpin for RtmpServerConfig
impl UnsafeUnpin for RtmpServerConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(DamageKind, Disposition)>: UnsafeUnpin,
impl UnwindSafe for RtmpServerConfigwhere
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