Struct rust_rcs_client::messaging::cpm::session::CPMSessionService
source · 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<(NativeSocket, String, u16, bool, bool, bool), (u16, &'static str)> + Send + Sync + 'static, MCF: Fn(NativeSocket, &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> )where F: FnOnce(u16, String) + Send + Sync + 'static,
Auto Trait Implementations§
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