pub struct Socket { /* private fields */ }
Implementations§
Source§impl Socket
impl Socket
pub fn create(name: impl AsRef<str>) -> Result<Self>
pub fn nonblock(name: impl AsRef<str>) -> Result<Self>
pub fn read_requests( &self, buf: &mut [Request], behavior: SignalBehavior, ) -> Result<usize>
pub fn next_request(&self, behavior: SignalBehavior) -> Result<Option<Request>>
pub fn write_responses( &self, buf: &[Response], behavior: SignalBehavior, ) -> Result<usize>
pub fn write_response( &self, resp: Response, behavior: SignalBehavior, ) -> Result<bool>
pub fn post_fevent(&self, id: usize, flags: usize) -> Result<()>
pub fn inner(&self) -> &Fd
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