pub struct Pending { /* private fields */ }Expand description
Descriptors received but not yet claimed by a message.
Kept in arrival order. Anything still here when the connection closes is closed with it: a descriptor nobody claimed is a leaked open file, and the process has no other handle on it.
Implementations§
Source§impl Pending
impl Pending
pub fn push(&mut self, fds: impl IntoIterator<Item = RawFd>)
Sourcepub fn take(&mut self, count: usize) -> Vec<RawFd>
pub fn take(&mut self, count: usize) -> Vec<RawFd>
Take count descriptors for a message that declared that many.
Fewer than asked for means the peer’s header disagreed with what it sent, which is a protocol error on their side; whatever is available is returned rather than blocking for something that is not coming.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Forget for Pending
impl Freeze for Pending
impl Move for Pending
impl RefUnwindSafe for Pending
impl Send for Pending
impl Sync for Pending
impl Unpin for Pending
impl UnsafeUnpin for Pending
impl UnwindSafe for Pending
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