pub struct AttachmentConfig {
pub width: u32,
pub height: u32,
pub video_codec: Option<VideoCodec>,
pub video_profile: Option<VideoProfile>,
pub quality_preset: Option<u32>,
pub audio_codec: Option<AudioCodec>,
pub sample_rate: Option<u32>,
pub channels: Vec<AudioChannel>,
pub video_stream_seq_offset: u64,
pub audio_stream_seq_offset: u64,
}
Fields§
§width: u32
The width of the video stream.
height: u32
The height of the video stream.
video_codec: Option<VideoCodec>
The codec to use for the video stream. Leaving it empty allows the server to decide.
video_profile: Option<VideoProfile>
The profile (bit depth and colorspace) to use for the video stream. Leaving it empty allows the server to decide.
quality_preset: Option<u32>
The quality preset, from 1-10. A None or 0 indicates the server should decide.
audio_codec: Option<AudioCodec>
The codec to use for the audio stream. Leaving it empty allows the server to decide.
sample_rate: Option<u32>
The sample rate to use for the audio stream. Leaving it empty allows the server to decide.
channels: Vec<AudioChannel>
The channel layout to use for the audio stream. An empty vec indicates the server should decide.
video_stream_seq_offset: u64
An offset to apply to the stream_seq of incoming video packets. The offset is applied on the client side, and exists as a convenient way to way to ensure sequence numbers stay monotonic, even across individual attachment streams.
audio_stream_seq_offset: u64
An offset to apply to the stream_seq of incoming audio packets. The offset is applied on the client side, and exists as a convenient way to way to ensure sequence numbers stay monotonic, even across individual attachment streams.
Trait Implementations§
Source§impl Clone for AttachmentConfig
impl Clone for AttachmentConfig
Source§fn clone(&self) -> AttachmentConfig
fn clone(&self) -> AttachmentConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<UT> ConvertError<UT> for AttachmentConfig
impl<UT> ConvertError<UT> for AttachmentConfig
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for AttachmentConfig
impl Debug for AttachmentConfig
Source§impl<UT> FfiConverter<UT> for AttachmentConfig
impl<UT> FfiConverter<UT> for AttachmentConfig
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for AttachmentConfig
impl<UT> Lift<UT> for AttachmentConfig
Source§impl<UT> LiftRef<UT> for AttachmentConfig
impl<UT> LiftRef<UT> for AttachmentConfig
type LiftType = AttachmentConfig
Source§impl<UT> LiftReturn<UT> for AttachmentConfig
impl<UT> LiftReturn<UT> for AttachmentConfig
Source§type ReturnType = <AttachmentConfig as Lift<UT>>::FfiType
type ReturnType = <AttachmentConfig as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for AttachmentConfig
impl<UT> Lower<UT> for AttachmentConfig
Source§impl<UT> LowerError<UT> for AttachmentConfig
impl<UT> LowerError<UT> for AttachmentConfig
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for AttachmentConfig
impl<UT> LowerReturn<UT> for AttachmentConfig
Source§type ReturnType = <AttachmentConfig as Lower<UT>>::FfiType
type ReturnType = <AttachmentConfig as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl<UT> TypeId<UT> for AttachmentConfig
impl<UT> TypeId<UT> for AttachmentConfig
const TYPE_ID_META: MetadataBuffer
Auto Trait Implementations§
impl Freeze for AttachmentConfig
impl RefUnwindSafe for AttachmentConfig
impl Send for AttachmentConfig
impl Sync for AttachmentConfig
impl Unpin for AttachmentConfig
impl UnwindSafe for AttachmentConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<>
Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more