pub struct Input { /* private fields */ }Expand description
图输入口句柄(热路径免按名字查表)。
Implementations§
Source§impl Input
impl Input
Sourcepub fn send(&self, pkt: Packet) -> Result<()>
pub fn send(&self, pkt: Packet) -> Result<()>
Sends on the same input are serialized through dispatch. Reentrant sends from that input’s dispatch callback return a state error.
Sourcepub fn try_send(&self, pkt: Packet) -> Result<()>
pub fn try_send(&self, pkt: Packet) -> Result<()>
Returns WouldBlock if another thread is dispatching on this input.
pub fn backpressure_stats(&self) -> WatermarkBackpressureStatsSnapshot
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Input
impl !UnwindSafe for Input
impl Freeze for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnsafeUnpin for Input
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