pub struct Agent { /* private fields */ }Expand description
ICE agent.
Implementations§
Source§impl Agent
impl Agent
Sourcepub fn get_local_description(&self) -> Result<String>
pub fn get_local_description(&self) -> Result<String>
Get local sdp
Sourcepub fn gather_candidates(&self) -> Result<()>
pub fn gather_candidates(&self) -> Result<()>
Start ICE candidates gathering
Sourcepub fn set_remote_description(&self, sdp: String) -> Result<()>
pub fn set_remote_description(&self, sdp: String) -> Result<()>
Set remote description
Sourcepub fn add_remote_candidate(&self, sdp: String) -> Result<()>
pub fn add_remote_candidate(&self, sdp: String) -> Result<()>
Add remote candidate
Sourcepub fn set_remote_gathering_done(&self) -> Result<()>
pub fn set_remote_gathering_done(&self) -> Result<()>
Signal remote candidates exhausted
Sourcepub fn get_selected_candidates(&self) -> Result<(String, String)>
pub fn get_selected_candidates(&self) -> Result<(String, String)>
Get selected candidates pair (local,remote)
pub fn get_selected_addresses(&self) -> Result<(String, String)>
Auto Trait Implementations§
impl Freeze for Agent
impl RefUnwindSafe for Agent
impl Send for Agent
impl Sync for Agent
impl Unpin for Agent
impl UnwindSafe for Agent
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