pub struct CPMSession { /* private fields */ }
Implementations§
Source§impl CPMSession
impl CPMSession
pub fn new(session_info: CPMSessionInfo) -> CPMSession
pub fn get_session_info(&self) -> &CPMSessionInfo
pub fn set_local_sdp( &self, l_sdp: Arc<Body>, cs: ClientSocket, tls: bool, laddr: String, lport: u16, lpath: Vec<u8>, ) -> Result<(), &'static str>
pub fn set_remote_sdp( &self, r_sdp: Arc<Body>, raddr: String, rport: u16, rpath: Vec<u8>, ) -> Result<(), &'static str>
pub fn start<MRL, F>( &self, public_user_identity: &str, message_receive_listener: MRL, connect_function: &Arc<dyn Fn(ClientSocket, &String, u16, bool) -> Pin<Box<dyn Future<Output = Result<ClientStream, (u16, &'static str)>> + Send>> + Send + Sync + 'static>, session_end_function: F, rt: &Arc<Runtime>, ) -> Result<Sender<CPMMessageParam>, ()>
pub fn send_message(&self, message: CPMMessageParam, rt: &Arc<Runtime>)
Auto Trait Implementations§
impl Freeze for CPMSession
impl RefUnwindSafe for CPMSession
impl Send for CPMSession
impl Sync for CPMSession
impl Unpin for CPMSession
impl UnwindSafe for CPMSession
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