pub struct PortSendPermit<'a> { /* private fields */ }Expand description
Reserved output capacity for one declared output port.
Implementations§
Source§impl PortSendPermit<'_>
impl PortSendPermit<'_>
Sourcepub fn send(self, packet: PortPacket) -> Result<(), PortSendError>
pub fn send(self, packet: PortPacket) -> Result<(), PortSendError>
Commit the reserved capacity and enqueue the packet.
§Errors
Returns an error if output validation rejects the packet.
Auto Trait Implementations§
impl<'a> Freeze for PortSendPermit<'a>
impl<'a> !RefUnwindSafe for PortSendPermit<'a>
impl<'a> Send for PortSendPermit<'a>
impl<'a> Sync for PortSendPermit<'a>
impl<'a> Unpin for PortSendPermit<'a>
impl<'a> UnsafeUnpin for PortSendPermit<'a>
impl<'a> !UnwindSafe for PortSendPermit<'a>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).