pub struct DataChannelMessage {
pub association_handle: usize,
pub stream_id: u16,
pub ppi: PayloadProtocolIdentifier,
pub payload: BytesMut,
}Expand description
DataChannelMessage is used to data sent over SCTP
Fields§
§association_handle: usize§stream_id: u16§ppi: PayloadProtocolIdentifier§payload: BytesMutTrait Implementations§
Source§impl Clone for DataChannelMessage
impl Clone for DataChannelMessage
Source§fn clone(&self) -> DataChannelMessage
fn clone(&self) -> DataChannelMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataChannelMessage
impl Debug for DataChannelMessage
Source§impl Default for DataChannelMessage
impl Default for DataChannelMessage
Source§fn default() -> DataChannelMessage
fn default() -> DataChannelMessage
Returns the “default value” for a type. Read more
Source§impl Protocol<DataChannelMessage, DataChannelMessage, ()> for DataChannel
impl Protocol<DataChannelMessage, DataChannelMessage, ()> for DataChannel
Source§fn handle_read(&mut self, msg: DataChannelMessage) -> Result<()>
fn handle_read(&mut self, msg: DataChannelMessage) -> Result<()>
ReadDataChannel reads a packet of len(p) bytes. It returns the number of bytes read and
true if the data read is a string.
Source§fn handle_write(&mut self, msg: DataChannelMessage) -> Result<()>
fn handle_write(&mut self, msg: DataChannelMessage) -> Result<()>
handle_write writes len(p) bytes from p
Source§fn poll_write(&mut self) -> Option<DataChannelMessage>
fn poll_write(&mut self) -> Option<DataChannelMessage>
Returns packets to transmit
Source§fn close(&mut self) -> Result<()>
fn close(&mut self) -> Result<()>
Close closes the DataChannel and the underlying SCTP stream.
Source§type Rout = DataChannelMessage
type Rout = DataChannelMessage
Output read message type Read more
Source§type Wout = DataChannelMessage
type Wout = DataChannelMessage
Output write message type Read more
Source§fn poll_read(&mut self) -> Option<DataChannelMessage>
fn poll_read(&mut self) -> Option<DataChannelMessage>
Poll for a processed read message. Read more
Source§fn handle_event(&mut self, _evt: Ein) -> Result<(), Self::Error>
fn handle_event(&mut self, _evt: Ein) -> Result<(), Self::Error>
Handle a custom event. Read more
Auto Trait Implementations§
impl Freeze for DataChannelMessage
impl RefUnwindSafe for DataChannelMessage
impl Send for DataChannelMessage
impl Sync for DataChannelMessage
impl Unpin for DataChannelMessage
impl UnwindSafe for DataChannelMessage
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> 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