pub struct RustyCotpResponder<R: TpktReader, W: TpktWriter> { /* private fields */ }Expand description
Creates a responder that consumes the underlying TPKT service to negotiate a COTP connection.
Implementations§
Source§impl<R: TpktReader, W: TpktWriter> RustyCotpResponder<R, W>
impl<R: TpktReader, W: TpktWriter> RustyCotpResponder<R, W>
Sourcepub async fn new(
tpkt_connection: impl TpktConnection,
connection_options: CotpConnectionParameters,
) -> Result<(RustyCotpResponder<impl TpktReader, impl TpktWriter>, CotpProtocolInformation), CotpError>
pub async fn new( tpkt_connection: impl TpktConnection, connection_options: CotpConnectionParameters, ) -> Result<(RustyCotpResponder<impl TpktReader, impl TpktWriter>, CotpProtocolInformation), CotpError>
Creates an acceptor.
This is a single use component used to upgrade an underlying TPKT connection to a COTP connection. The TPKT connection should be a server, but this is not enforced.
Trait Implementations§
Source§impl<R: TpktReader, W: TpktWriter> CotpResponder for RustyCotpResponder<R, W>
impl<R: TpktReader, W: TpktWriter> CotpResponder for RustyCotpResponder<R, W>
Source§async fn accept(
self,
options: CotpProtocolInformation,
) -> Result<impl CotpConnection, CotpError>
async fn accept( self, options: CotpProtocolInformation, ) -> Result<impl CotpConnection, CotpError>
Accepts a connection with the given parameters. Read more
Auto Trait Implementations§
impl<R, W> Freeze for RustyCotpResponder<R, W>
impl<R, W> !RefUnwindSafe for RustyCotpResponder<R, W>
impl<R, W> Send for RustyCotpResponder<R, W>
impl<R, W> !Sync for RustyCotpResponder<R, W>
impl<R, W> Unpin for RustyCotpResponder<R, W>
impl<R, W> UnsafeUnpin for RustyCotpResponder<R, W>where
R: UnsafeUnpin,
W: UnsafeUnpin,
impl<R, W> !UnwindSafe for RustyCotpResponder<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