#[repr(C)]pub struct switch_codec {
pub codec_interface: *mut switch_codec_interface_t,
pub implementation: *const switch_codec_implementation_t,
pub fmtp_in: *mut c_char,
pub fmtp_out: *mut c_char,
pub flags: u32,
pub memory_pool: *mut switch_memory_pool_t,
pub private_info: *mut c_void,
pub agreed_pt: switch_payload_t,
pub mutex: *mut switch_mutex_t,
pub next: *mut switch_codec,
pub session: *mut switch_core_session_t,
pub cur_frame: *mut switch_frame_t,
}Expand description
an abstract handle to a codec module
Fields§
§codec_interface: *mut switch_codec_interface_tthe codec interface table this handle uses
implementation: *const switch_codec_implementation_tthe specific implementation of the above codec
fmtp_in: *mut c_charfmtp line from remote sdp
fmtp_out: *mut c_charfmtp line for local sdp
flags: u32flags to modify behaviour
memory_pool: *mut switch_memory_pool_tthe handle’s memory pool
private_info: *mut c_voidprivate data for the codec module to store handle specific info
agreed_pt: switch_payload_t§mutex: *mut switch_mutex_t§next: *mut switch_codec§session: *mut switch_core_session_t§cur_frame: *mut switch_frame_tTrait Implementations§
Source§impl Clone for switch_codec
impl Clone for switch_codec
Source§fn clone(&self) -> switch_codec
fn clone(&self) -> switch_codec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for switch_codec
impl Debug for switch_codec
impl Copy for switch_codec
Auto Trait Implementations§
impl Freeze for switch_codec
impl RefUnwindSafe for switch_codec
impl !Send for switch_codec
impl !Sync for switch_codec
impl Unpin for switch_codec
impl UnwindSafe for switch_codec
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