pub struct Raw4Socket { /* private fields */ }Implementations§
Source§impl Raw4Socket
impl Raw4Socket
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>( fd: RawFd, opt: O, val: &O::Val, ) -> Result<()>
Trait Implementations§
Source§impl AsRawFd for Raw4Socket
impl AsRawFd for Raw4Socket
Auto Trait Implementations§
impl Freeze for Raw4Socket
impl !RefUnwindSafe for Raw4Socket
impl Send for Raw4Socket
impl Sync for Raw4Socket
impl Unpin for Raw4Socket
impl !UnwindSafe for Raw4Socket
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