pub struct CallSession { /* private fields */ }Implementations§
Source§impl CallSession
impl CallSession
pub fn new(config: RtcConfig) -> Result<Self, EnigmaRtcError>
pub fn with_engine<E>(
config: RtcConfig,
engine: Arc<E>,
) -> Result<Self, EnigmaRtcError>where
E: RtcEngine + 'static,
pub fn state(&self) -> CallState
pub fn config(&self) -> &RtcConfig
pub fn create_offer(&self) -> Result<SignalingMessage, EnigmaRtcError>
pub fn accept_offer( &self, offer_sdp: &str, ) -> Result<SignalingMessage, EnigmaRtcError>
pub fn accept_answer(&self, answer_sdp: &str) -> Result<(), EnigmaRtcError>
pub fn add_ice_candidate( &self, candidate_json: &str, ) -> Result<(), EnigmaRtcError>
pub fn hangup( &self, reason: Option<&str>, ) -> Result<SignalingMessage, EnigmaRtcError>
pub fn set_microphone_enabled( &self, enabled: bool, ) -> Result<(), EnigmaRtcError>
pub fn set_camera_enabled(&self, enabled: bool) -> Result<(), EnigmaRtcError>
Source§impl CallSession
impl CallSession
pub async fn next_event(&self) -> Result<RtcEvent, EnigmaRtcError>
Auto Trait Implementations§
impl !Freeze for CallSession
impl !RefUnwindSafe for CallSession
impl !UnwindSafe for CallSession
impl Send for CallSession
impl Sync for CallSession
impl Unpin for CallSession
impl UnsafeUnpin for CallSession
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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