Struct sfu::DataChannelHandler
source · 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
§type Rout = <DataChannelHandler as Handler>::Rin
type Rout = <DataChannelHandler as Handler>::Rin
Associated output message type for [InboundHandler::read]
§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 !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