pub struct Connection { /* private fields */ }
Implementations§
Source§impl Connection
impl Connection
pub fn with_token_sink( server_name: String, token_sink: Arc<dyn TokenSink>, ) -> ClientFoundation
pub fn with_token_provider( token_provider: Arc<dyn TokenProvider>, ) -> ServerFoundation
Source§impl Connection
impl Connection
pub fn enter_closing(&self, ccf: ConnectionCloseFrame)
pub fn enter_draining(&self, ccf: ConnectionCloseFrame)
pub fn close(&self, reason: Cow<'static, str>, code: u64)
pub async fn open_bi_stream( &self, ) -> Result<Option<(StreamId, (Reader<Ext<ArcReliableFrameDeque<ReliableFrame>>>, Writer<Ext<ArcReliableFrameDeque<ReliableFrame>>>))>, Error>
pub async fn open_uni_stream( &self, ) -> Result<Option<(StreamId, Writer<Ext<ArcReliableFrameDeque<ReliableFrame>>>)>, Error>
pub async fn accept_bi_stream( &self, ) -> Result<Option<(StreamId, (Reader<Ext<ArcReliableFrameDeque<ReliableFrame>>>, Writer<Ext<ArcReliableFrameDeque<ReliableFrame>>>))>, Error>
pub async fn accept_uni_stream( &self, ) -> Result<Option<(StreamId, Reader<Ext<ArcReliableFrameDeque<ReliableFrame>>>)>, Error>
pub fn unreliable_reader(&self) -> Result<DatagramReader, Error>
pub async fn unreliable_writer(&self) -> Result<DatagramWriter, Error>
pub fn add_path(&self, link: Link, pathway: Pathway) -> Result<(), Error>
pub fn del_path(&self, pathway: &Pathway) -> Result<(), Error>
pub fn is_active(&self) -> bool
pub fn origin_dcid(&self) -> Result<ConnectionId, Error>
pub async fn handshaked(&self)
pub async fn terminated(&self)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Connection
impl !RefUnwindSafe for Connection
impl Send for Connection
impl Sync for Connection
impl Unpin for Connection
impl !UnwindSafe for Connection
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