[][src]Struct sctpx::client::Hdr

pub struct Hdr { /* fields omitted */ }

SCTP handler

Implementations

impl Hdr[src]

pub fn new() -> Result<Hdr>[src]

create a new handler

pub fn sendto_straddr(&self, data: &[u8], server_addr: &str) -> Result<usize>[src]

sendmsg to server

pub fn sendto(&self, data: &[u8], server_addr: SocketAddr) -> Result<usize>[src]

sendmsg to server

pub fn recvfrom(&self, data: &mut [u8]) -> Result<(usize, Option<SockAddr>)>[src]

recvmsg from server

Trait Implementations

impl Debug for Hdr[src]

impl Drop for Hdr[src]

impl Eq for Hdr[src]

impl Hash for Hdr[src]

impl PartialEq<Hdr> for Hdr[src]

impl StructuralEq for Hdr[src]

impl StructuralPartialEq for Hdr[src]

Auto Trait Implementations

impl RefUnwindSafe for Hdr

impl Send for Hdr

impl Sync for Hdr

impl Unpin for Hdr

impl UnwindSafe for Hdr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.