pub struct VoiceOffer { /* private fields */ }Expand description
Owned request metadata for one call generation. It intentionally has no
Clone or Debug: create a fresh identity for each new call. The embedding
owner must supply new random bytes and keep this value until that call ends.
Implementations§
Source§impl VoiceOffer
impl VoiceOffer
Sourcepub fn from_owned_random(owner_version: i32, random32: [u8; 32]) -> Result<Self>
pub fn from_owned_random(owner_version: i32, random32: [u8; 32]) -> Result<Self>
owner_version is this embedding client’s version, not a captured peer’s
version. Signed int32 representation is preserved in engine field27.
MD5 reproduces the channel identity transform; it is not authentication.
pub fn sdk_info(&self) -> &[u8] ⓘ
pub fn engine_advertisement(&self) -> &[u8] ⓘ
pub fn advertised_channel_identity(&self) -> &[u8; 12]
pub fn internal_channel_identity(&self) -> &[u8; 12]
Sourcepub fn apply_to(&self, parameters: &mut VoiceParameters)
pub fn apply_to(&self, parameters: &mut VoiceParameters)
Replace only request-side fields. Negotiated response buffers must never be fed back through these fields as the next call’s advertised support.
Auto Trait Implementations§
impl Freeze for VoiceOffer
impl RefUnwindSafe for VoiceOffer
impl Send for VoiceOffer
impl Sync for VoiceOffer
impl Unpin for VoiceOffer
impl UnsafeUnpin for VoiceOffer
impl UnwindSafe for VoiceOffer
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