pub struct TapId(/* private fields */);Expand description
Opaque handle identifying a registered output tap. Returned by
Session::add_output_tap and accepted by
Session::remove_output_tap.
Backed by u64. The id space is large enough that wraparound is not
reachable in practice; the implementation uses a non-wrapping += 1
so a hypothetical exhaustion would surface as a loud panic instead of
silently colliding with a still-registered tap.
Trait Implementations§
impl Copy for TapId
impl Eq for TapId
impl StructuralPartialEq for TapId
Auto Trait Implementations§
impl Freeze for TapId
impl RefUnwindSafe for TapId
impl Send for TapId
impl Sync for TapId
impl Unpin for TapId
impl UnsafeUnpin for TapId
impl UnwindSafe for TapId
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