pub struct Fds { /* private fields */ }
Expand description
Container for open file descriptors and their associated bind addresses.
Implementations§
Source§impl Fds
impl Fds
pub fn new() -> Self
pub fn add(&mut self, bind: String, fd: RawFd)
pub fn get(&self, bind: &str) -> Option<&RawFd>
pub fn serialize(&self) -> (Vec<String>, Vec<RawFd>)
pub fn deserialize(&mut self, binds: Vec<String>, fds: Vec<RawFd>)
pub fn send_to_sock<P>(&self, path: &P) -> Result<usize, Error>
pub fn get_from_sock<P>(&mut self, path: &P) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Fds
impl RefUnwindSafe for Fds
impl Send for Fds
impl Sync for Fds
impl Unpin for Fds
impl UnwindSafe for Fds
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