Skip to main content

RustyCotpResponder

Struct RustyCotpResponder 

Source
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>

Source

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>

Source§

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>
where R: Freeze, W: Freeze,

§

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>
where R: Unpin, W: Unpin,

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V