pub struct TcpCotpConnection<R: TpktReader, W: TpktWriter> { /* private fields */ }Implementations§
Source§impl<R: TpktReader, W: TpktWriter> TcpCotpConnection<R, W>
impl<R: TpktReader, W: TpktWriter> TcpCotpConnection<R, W>
pub async fn initiate( connection: impl TpktConnection, options: CotpProtocolInformation, ) -> Result<TcpCotpConnection<impl TpktReader, impl TpktWriter>, CotpError>
Trait Implementations§
Source§impl<R: TpktReader, W: TpktWriter> CotpConnection for TcpCotpConnection<R, W>
impl<R: TpktReader, W: TpktWriter> CotpConnection for TcpCotpConnection<R, W>
Source§fn get_protocol_infomation_list(&self) -> &Vec<Box<dyn ProtocolInformation>>
fn get_protocol_infomation_list(&self) -> &Vec<Box<dyn ProtocolInformation>>
Gets the information regarding the protocols that have been negotiated during the connect phase.
Source§async fn split(self) -> Result<(impl CotpReader, impl CotpWriter), CotpError>
async fn split(self) -> Result<(impl CotpReader, impl CotpWriter), CotpError>
Splits a connection into reader and writer components. This must be done before the connection is used.
Auto Trait Implementations§
impl<R, W> Freeze for TcpCotpConnection<R, W>
impl<R, W> !RefUnwindSafe for TcpCotpConnection<R, W>
impl<R, W> Send for TcpCotpConnection<R, W>
impl<R, W> !Sync for TcpCotpConnection<R, W>
impl<R, W> Unpin for TcpCotpConnection<R, W>
impl<R, W> UnsafeUnpin for TcpCotpConnection<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> !UnwindSafe for TcpCotpConnection<R, W>
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