pub struct Reply(/* private fields */);Expand description
Where a refusal goes back to.
A command travels socket to desk to worker thread, and only events come back, so a refusal made minutes later has no way home. Making it an event instead would tell everyone watching about one person’s mistyped URL; the city’s history is not anybody’s error log. So the command carries the address of whoever sent it.
Holds a function rather than a channel so that this crate’s public signature does not name a transport the assembly layer would then have to name too.
Implementations§
Source§impl Reply
impl Reply
Sourcepub fn to(sink: impl Fn(AxError) -> Delivered + Send + Sync + 'static) -> Reply
pub fn to(sink: impl Fn(AxError) -> Delivered + Send + Sync + 'static) -> Reply
A reply address that reaches the peer that sent the command.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Reply
impl !UnwindSafe for Reply
impl Freeze for Reply
impl Send for Reply
impl Sync for Reply
impl Unpin for Reply
impl UnsafeUnpin for Reply
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