#[non_exhaustive]pub struct RtmpClientConfig {
pub mode: ClientMode,
pub play_buffer: Duration,
pub chunk_size: u32,
pub window_ack_size: u32,
pub app: String,
pub stream_key: String,
pub tc_url: Option<String>,
pub max_in_progress_bytes: usize,
}Expand description
Configuration for a ClientSession.
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.mode: ClientModePublish (default) or play.
play_buffer: DurationPlayback buffer length announced to the server before play (§6.7 SetBufferLength),
sent as whole milliseconds on the wire. Play mode only.
chunk_size: u32Outbound chunk size (§5.4.1).
window_ack_size: u32Window Acknowledgement Size (§5.4.4).
app: StringRTMP app name for the connect command.
stream_key: StringPublishing name (stream key) for the publish command, or the stream name play asks
for in play mode.
tc_url: Option<String>tcUrl for the connect command (e.g. rtmp://host/app).
max_in_progress_bytes: usizeCeiling on the total payload bytes this session’s
ChunkAssembler may buffer across all in-progress messages
at once (#1108/RTMP-W1); see
crate::chunk::DEFAULT_MAX_IN_PROGRESS_BYTES for the default.
Trait Implementations§
Source§impl Clone for RtmpClientConfig
impl Clone for RtmpClientConfig
Source§impl Debug for RtmpClientConfig
Manual Debug: the stream key is a publish secret and never renders
(issue #1142).
impl Debug for RtmpClientConfig
Manual Debug: the stream key is a publish secret and never renders
(issue #1142).
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