pub struct ChannelSnapshot { /* private fields */ }Expand description
Serializable userspace state of a Channel.
The Hub supplies the effective descriptor after fork/exec inheritance or explicit duplication. Only bytes that have not been consumed are captured; buffer offsets are normalized on restore while their capacities and backpressure state are preserved.
Implementations§
Source§impl ChannelSnapshot
impl ChannelSnapshot
Sourcepub fn has_buffered_input(&self) -> bool
pub fn has_buffered_input(&self) -> bool
Whether restoring this channel leaves input already available in userspace, independently of kernel readiness notifications.
Sourcepub fn has_buffered_output(&self) -> bool
pub fn has_buffered_output(&self) -> bool
Whether restoring this channel leaves output queued in userspace, independently of kernel readiness notifications.
Sourcepub fn buffered_bytes(&self) -> usize
pub fn buffered_bytes(&self) -> usize
Total userspace bytes that the kernel cannot report through readiness.
Trait Implementations§
Source§impl Clone for ChannelSnapshot
impl Clone for ChannelSnapshot
Source§impl Debug for ChannelSnapshot
impl Debug for ChannelSnapshot
Source§impl<'de> Deserialize<'de> for ChannelSnapshot
impl<'de> Deserialize<'de> for ChannelSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ChannelSnapshot
Source§impl PartialEq for ChannelSnapshot
impl PartialEq for ChannelSnapshot
Source§impl Serialize for ChannelSnapshot
impl Serialize for ChannelSnapshot
impl StructuralPartialEq for ChannelSnapshot
Auto Trait Implementations§
impl Freeze for ChannelSnapshot
impl RefUnwindSafe for ChannelSnapshot
impl Send for ChannelSnapshot
impl Sync for ChannelSnapshot
impl Unpin for ChannelSnapshot
impl UnsafeUnpin for ChannelSnapshot
impl UnwindSafe for ChannelSnapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.