pub struct DatagramReader<H: RecvDatagram> { /* private fields */ }Implementations§
Source§impl<H> DatagramReader<H>where
H: RecvDatagram,
impl<H> DatagramReader<H>where
H: RecvDatagram,
Sourcepub async fn read_datagram(
&mut self,
) -> Result<Datagram<H::Buffer>, StreamError>
pub async fn read_datagram( &mut self, ) -> Result<Datagram<H::Buffer>, StreamError>
Reads an incoming datagram
Trait Implementations§
Source§impl<H> CloseStream for DatagramReader<H>where
H: RecvDatagram,
impl<H> CloseStream for DatagramReader<H>where
H: RecvDatagram,
Source§fn handle_connection_error_on_stream(
&mut self,
internal_error: InternalConnectionError,
) -> StreamError
fn handle_connection_error_on_stream( &mut self, internal_error: InternalConnectionError, ) -> StreamError
Handles a connection error on a stream
Source§fn handle_quic_stream_error(&self, error: StreamErrorIncoming) -> StreamError
fn handle_quic_stream_error(&self, error: StreamErrorIncoming) -> StreamError
Handles a incoming stream error from the quic layer
Source§fn check_peer_connection_closing(&self) -> Option<StreamError>
fn check_peer_connection_closing(&self) -> Option<StreamError>
Checks if the peer connection is closing an if it is allowed to send a request / server push
Source§impl<H> ConnectionState for DatagramReader<H>where
H: RecvDatagram,
impl<H> ConnectionState for DatagramReader<H>where
H: RecvDatagram,
Get the shared state
Source§fn get_conn_error(&self) -> Option<ErrorOrigin>
fn get_conn_error(&self) -> Option<ErrorOrigin>
Get the connection error if the connection is in error state because of another task Read more
Source§fn set_conn_error(&self, error: ErrorOrigin) -> ErrorOrigin
fn set_conn_error(&self, error: ErrorOrigin) -> ErrorOrigin
tries to set the connection error
Source§fn set_conn_error_and_wake<T>(&self, error: T) -> ErrorOriginwhere
T: Into<ErrorOrigin>,
fn set_conn_error_and_wake<T>(&self, error: T) -> ErrorOriginwhere
T: Into<ErrorOrigin>,
set the connection error and wake the connection
Source§fn set_closing(&self)
fn set_closing(&self)
Set the connection to closing
Source§fn is_closing(&self) -> bool
fn is_closing(&self) -> bool
Check if the connection is closing
Source§fn set_settings(&self, settings: Settings)
fn set_settings(&self, settings: Settings)
Set the settings
Source§fn waker(&self) -> &AtomicWaker
fn waker(&self) -> &AtomicWaker
Returns the waker for the connection
Auto Trait Implementations§
impl<H> !RefUnwindSafe for DatagramReader<H>
impl<H> !UnwindSafe for DatagramReader<H>
impl<H> Freeze for DatagramReader<H>where
H: Freeze,
impl<H> Send for DatagramReader<H>where
H: Send,
impl<H> Sync for DatagramReader<H>where
H: Sync,
impl<H> Unpin for DatagramReader<H>where
H: Unpin,
impl<H> UnsafeUnpin for DatagramReader<H>where
H: UnsafeUnpin,
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