Struct sfu::SctpHandler
source · pub struct SctpHandler { /* private fields */ }
Expand description
SctpHandler implements SCTP Protocol handling
Implementations§
source§impl SctpHandler
impl SctpHandler
pub fn new( local_addr: SocketAddr, server_states: Rc<RefCell<ServerStates>> ) -> Self
Trait Implementations§
source§impl Handler for SctpHandler
impl Handler for SctpHandler
§type Rout = <SctpHandler as Handler>::Rin
type Rout = <SctpHandler as Handler>::Rin
Associated output message type for [InboundHandler::read]
§type Wout = <SctpHandler as Handler>::Win
type Wout = <SctpHandler 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 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 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_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 SctpHandler
impl !Send for SctpHandler
impl !Sync for SctpHandler
impl Unpin for SctpHandler
impl !UnwindSafe for SctpHandler
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