pub struct ChannelConnection { /* private fields */ }Implementations§
Source§impl ChannelConnection
impl ChannelConnection
pub async fn create_connection( incoming: TransportReceiver, outgoing: TransportSender, addr: SipAddr, cancel_token: Option<CancellationToken>, ) -> Result<Self>
pub async fn send(&self, msg: SipMessage) -> Result<()>
pub fn get_addr(&self) -> &SipAddr
pub async fn serve_loop(&self, sender: TransportSender) -> Result<()>
pub async fn close(&self) -> Result<()>
pub fn cancel_token(&self) -> Option<CancellationToken>
Trait Implementations§
Source§impl Clone for ChannelConnection
impl Clone for ChannelConnection
Source§fn clone(&self) -> ChannelConnection
fn clone(&self) -> ChannelConnection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelConnection
impl Debug for ChannelConnection
Source§impl Display for ChannelConnection
impl Display for ChannelConnection
Source§impl From<ChannelConnection> for SipConnection
impl From<ChannelConnection> for SipConnection
Source§fn from(connection: ChannelConnection) -> Self
fn from(connection: ChannelConnection) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChannelConnection
impl RefUnwindSafe for ChannelConnection
impl Send for ChannelConnection
impl Sync for ChannelConnection
impl Unpin for ChannelConnection
impl UnwindSafe for ChannelConnection
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