pub struct Socket(/* private fields */);
Implementations§
Source§impl Socket
impl Socket
pub fn bind<I>(ifname: I) -> Result<Self>
pub fn set_timestamping(&self, timestamping: Timestamping) -> Result<()>
pub fn set_recv_own_msgs(&self, enable: bool) -> Result<()>
pub fn set_fd_frames(&self, enable: bool) -> Result<()>
pub async fn recv(&self) -> Result<Frame>
pub async fn recv_msg<'a>( &self, cmsg_buf: &'a mut [u8], ) -> Result<(Frame, Option<CmsgIter<'a>>)>
pub async fn send(&self, frame: &Frame) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Socket
impl !RefUnwindSafe for Socket
impl Send for Socket
impl Sync for Socket
impl Unpin for Socket
impl !UnwindSafe for Socket
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