#[non_exhaustive]pub struct ClientConfig {
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.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.
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 ClientConfig
impl Clone for ClientConfig
Source§impl Debug for ClientConfig
Manual Debug: the stream key is a publish secret and never renders
(issue #1142).
impl Debug for ClientConfig
Manual Debug: the stream key is a publish secret and never renders
(issue #1142).
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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