pub enum RegistryMessage<K, D: Protocol, Route> {
Bind {
key: K,
recipient: Recipient<D>,
},
Unbind {
key: K,
recipient: Recipient<D>,
},
Lookup {
key: K,
reply_to: Route,
},
}Expand description
Commands accepted by a Registry.
A lookup owns a typed reply recipient; no runtime registry or reply-channel discovery is performed.
Variants§
Bind
Establish a previously absent binding.
Unbind
Remove a binding only if it still names the supplied recipient.
Lookup
Return the exact current result to reply_to.
Auto Trait Implementations§
impl<K, D, Route> Freeze for RegistryMessage<K, D, Route>
impl<K, D, Route> RefUnwindSafe for RegistryMessage<K, D, Route>
impl<K, D, Route> Send for RegistryMessage<K, D, Route>
impl<K, D, Route> Sync for RegistryMessage<K, D, Route>
impl<K, D, Route> Unpin for RegistryMessage<K, D, Route>
impl<K, D, Route> UnsafeUnpin for RegistryMessage<K, D, Route>
impl<K, D, Route> UnwindSafe for RegistryMessage<K, D, Route>
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