pub struct DataChannelHandler { /* private fields */ }
Expand description
DataChannelHandler implements DataChannel Protocol handling
Implementations§
Trait Implementations§
Source§impl Default for DataChannelHandler
impl Default for DataChannelHandler
Source§fn default() -> DataChannelHandler
fn default() -> DataChannelHandler
Returns the “default value” for a type. Read more
Source§impl Handler for DataChannelHandler
impl Handler for DataChannelHandler
Source§type Rout = <DataChannelHandler as Handler>::Rin
type Rout = <DataChannelHandler as Handler>::Rin
Associated output message type for [InboundHandler::read]
Source§type Wout = <DataChannelHandler as Handler>::Win
type Wout = <DataChannelHandler as Handler>::Win
Associated output message type for [OutboundHandler::write]
Source§fn handle_read(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
msg: Self::Rin,
)
fn handle_read( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, msg: Self::Rin, )
Handles input message.
Source§fn poll_write(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
) -> Option<Self::Wout>
fn poll_write( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, ) -> Option<Self::Wout>
Polls output message from internal transmit queue
Source§fn transport_active(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn transport_active( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Transport is active now, which means it is connected.
Source§fn transport_inactive(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn transport_inactive( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Transport is inactive now, which means it is disconnected.
Source§fn handle_timeout(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
now: Instant,
)
fn handle_timeout( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, now: Instant, )
Handles a timeout event.
Source§fn poll_timeout(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
eto: &mut Instant,
)
fn poll_timeout( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, eto: &mut Instant, )
Polls earliest timeout (eto) in its inbound operations.
Source§fn handle_read_eof(
&mut self,
ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>,
)
fn handle_read_eof( &mut self, ctx: &Context<Self::Rin, Self::Rout, Self::Win, Self::Wout>, )
Reads an EOF event.
Auto Trait Implementations§
impl Freeze for DataChannelHandler
impl !RefUnwindSafe for DataChannelHandler
impl !Send for DataChannelHandler
impl !Sync for DataChannelHandler
impl Unpin for DataChannelHandler
impl !UnwindSafe for DataChannelHandler
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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