pub struct ScionQuinnConn { /* private fields */ }Expand description
SCION quinn connection.
Trait Implementations§
Source§impl Clone for ScionQuinnConn
impl Clone for ScionQuinnConn
Source§fn clone(&self) -> ScionQuinnConn
fn clone(&self) -> ScionQuinnConn
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 QuinnConn for ScionQuinnConn
impl QuinnConn for ScionQuinnConn
Source§type SockAddrType = SocketAddr
type SockAddrType = SocketAddr
The type used to represent the remote socket address.
Source§fn read_datagram(&self) -> ReadDatagram<'_>
fn read_datagram(&self) -> ReadDatagram<'_>
Reads a datagram, if one is available.
Source§fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>
fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>
Sends a datagram.
Source§fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_>
fn send_datagram_wait(&self, data: Bytes) -> SendDatagram<'_>
Sends a datagram and wait for it to be sent.
Source§async fn closed(&self) -> ConnectionError
async fn closed(&self) -> ConnectionError
Waits for the connection to be closed.
Source§fn close_reason(&self) -> Option<ConnectionError>
fn close_reason(&self) -> Option<ConnectionError>
Returns the reason why the connection was closed, if it was closed.
Source§fn close(&self, error_code: VarInt, reason: &[u8])
fn close(&self, error_code: VarInt, reason: &[u8])
Closes the connection with the given error code and reason.
Source§fn max_datagram_size(&self) -> Option<usize>
fn max_datagram_size(&self) -> Option<usize>
Returns the maximum datagram size that can be sent on this connection.
Source§fn datagram_send_buffer_space(&self) -> usize
fn datagram_send_buffer_space(&self) -> usize
Returns the amount of buffer space available for sending datagrams.
Source§fn remote_address(&self) -> Self::SockAddrType
fn remote_address(&self) -> Self::SockAddrType
Returns the remote socket address type.
Source§fn stats(&self) -> ConnectionStats
fn stats(&self) -> ConnectionStats
Returns connection statistics.
Auto Trait Implementations§
impl Freeze for ScionQuinnConn
impl RefUnwindSafe for ScionQuinnConn
impl Send for ScionQuinnConn
impl Sync for ScionQuinnConn
impl Unpin for ScionQuinnConn
impl UnsafeUnpin for ScionQuinnConn
impl UnwindSafe for ScionQuinnConn
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request