pub struct Raw6Socket { /* private fields */ }Implementations§
Source§impl Raw6Socket
impl Raw6Socket
pub fn new(protocol: IpProto) -> Result<Self>
pub fn send(&self, buf: &[u8], flags: MsgFlags) -> Result<usize>
pub async fn recv_msg(&self, bufsize: usize, flags: MsgFlags) -> Result<RecvMsg>
pub async fn send_msg( &self, buffer: &[u8], cmsg: &ControlMessage, flags: MsgFlags, addr: Option<&NetAddr>, ) -> Result<()>
pub fn set_socket_option<O: SetSockOpt>( &self, opt: O, val: &O::Val, ) -> Result<()>
Trait Implementations§
Source§impl AsRawFd for Raw6Socket
impl AsRawFd for Raw6Socket
Auto Trait Implementations§
impl Freeze for Raw6Socket
impl !RefUnwindSafe for Raw6Socket
impl Send for Raw6Socket
impl Sync for Raw6Socket
impl Unpin for Raw6Socket
impl !UnwindSafe for Raw6Socket
Blanket Implementations§
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