pub struct CPMSessionService { /* private fields */ }
Implementations§
Source§impl CPMSessionService
impl CPMSessionService
pub fn new<MRL, MAF, MCF, CF, GF, GL>(
message_receive_listener: MRL,
msrp_socket_allocator_function: MAF,
msrp_socket_connect_function: MCF,
conversation_invite_handler_function: CF,
group_invite_handler_function: GF,
group_invite_event_listener_function: GL,
) -> CPMSessionServicewhere
MRL: Fn(&Arc<SipSession<CPMSession>>, &[u8], &CPIMInfo<'_>, &[u8], &[u8]) + Send + Sync + 'static,
MAF: Fn(Option<&MsrpInfo<'_>>) -> Result<(ClientSocket, String, u16, bool, bool, bool), (u16, &'static str)> + Send + Sync + 'static,
MCF: Fn(ClientSocket, &String, u16, bool) -> Pin<Box<dyn Future<Output = Result<ClientStream, (u16, &'static str)>> + Send>> + Send + Sync + 'static,
CF: Fn(bool, &str, &str, &str, Receiver<()>) -> u16 + Send + Sync + 'static,
GF: Fn(&str, &str, &str, &str, &str, &str, Receiver<()>) -> u16 + Send + Sync + 'static,
GL: Fn(CPMGroupEvent) + Send + Sync + 'static,
pub fn set_registered_public_identity( &self, registered_public_identity: String, sip_instance_id: String, transport: Arc<SipTransport>, )
pub fn accept_and_open_session(&self, recipient: &str, rt: &Arc<Runtime>)
pub fn send_message<F>( &self, message_type: &str, message_content: &str, recipient: &str, recipient_type: &RecipientType, recipient_uri: &str, message_result_callback: F, core: &Arc<SipCore>, rt: &Arc<Runtime>, )
Auto Trait Implementations§
impl Freeze for CPMSessionService
impl !RefUnwindSafe for CPMSessionService
impl Send for CPMSessionService
impl Sync for CPMSessionService
impl Unpin for CPMSessionService
impl !UnwindSafe for CPMSessionService
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