pub struct Connection { /* private fields */ }Implementations§
Source§impl Connection
impl Connection
pub async fn connect( peer_addr: SocketAddr, config: Config, server_name: Option<&str>, qlog: Option<QLogConfig>, ) -> Result<Self, ConnectionError>
pub async fn established(&self) -> Result<(), ConnectionError>
pub async fn set_qlog(&self, qlog: QLogConfig) -> Result<(), ConnectionError>
pub async fn send_ack_eliciting(&self) -> Result<(), ConnectionError>
pub async fn close( &self, app: bool, err: u64, reason: Vec<u8>, ) -> Result<(), ConnectionError>
pub fn is_server(&self) -> bool
pub async fn new_stream( &self, stream_id: u64, bidi: bool, ) -> Result<Stream, ConnectionError>
pub async fn next_peer_stream(&mut self) -> Result<Stream, ConnectionError>
pub fn peer_streams(&mut self) -> ConnectionNewStreams
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more