pub struct UsedChain<C> { /* private fields */ }Expand description
Driver-owned chain returned by used-ring consumption.
Implementations§
Source§impl<C> UsedChain<C>
impl<C> UsedChain<C>
Sourcepub const fn new(id: ChainId, used: UsedLength, chain: C) -> Self
pub const fn new(id: ChainId, used: UsedLength, chain: C) -> Self
Construct a used-chain result.
Sourcepub const fn used(&self) -> UsedLength
pub const fn used(&self) -> UsedLength
Exact number of bytes written by the device.
Sourcepub fn into_parts(self) -> (ChainId, UsedLength, C)
pub fn into_parts(self) -> (ChainId, UsedLength, C)
Recover the identity, used length, and driver chain.
Trait Implementations§
impl<C: Eq> Eq for UsedChain<C>
Source§impl<C: PartialEq> PartialEq for UsedChain<C>
impl<C: PartialEq> PartialEq for UsedChain<C>
impl<C: PartialEq> StructuralPartialEq for UsedChain<C>
Auto Trait Implementations§
impl<C> Freeze for UsedChain<C>where
C: Freeze,
impl<C> RefUnwindSafe for UsedChain<C>where
C: RefUnwindSafe,
impl<C> Send for UsedChain<C>where
C: Send,
impl<C> Sync for UsedChain<C>where
C: Sync,
impl<C> Unpin for UsedChain<C>where
C: Unpin,
impl<C> UnsafeUnpin for UsedChain<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for UsedChain<C>where
C: UnwindSafe,
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