pub struct SipCore { /* private fields */ }Implementations§
Source§impl SipCore
impl SipCore
pub fn new() -> Self
pub fn on_tick(&mut self, _now_ms: u64)
pub fn reply_register_validate(&mut self, group_id: &GroupId, accept: bool)
pub fn open_out_call(&mut self, group_id: &GroupId)
pub fn close_out_call(&mut self, group_id: &GroupId)
pub fn close_in_call(&mut self, group_id: &GroupId)
pub fn on_req( &mut self, now_ms: u64, from: SocketAddr, req: SipRequest, ) -> Result<(), SipServerError>
pub fn on_res( &mut self, _now_ms: u64, from: SocketAddr, res: SipResponse, ) -> Result<(), SipServerError>
pub fn pop_action(&mut self) -> Option<SipServerEvent>
Auto Trait Implementations§
impl Freeze for SipCore
impl RefUnwindSafe for SipCore
impl Send for SipCore
impl Sync for SipCore
impl Unpin for SipCore
impl UnwindSafe for SipCore
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