pub struct MessageLink<M: Message>(/* private fields */);
Expand description
Alternative type to a link rather than representing a service type this represents a link to a service that accepts a specific message type
These are cheaply clonable
Implementations§
Source§impl<M> MessageLink<M>where
M: Message,
impl<M> MessageLink<M>where
M: Message,
pub async fn send(&self, msg: M) -> LinkResult<M::Response>
pub fn do_send(&self, msg: M) -> LinkResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for MessageLink<M>
impl<M> !RefUnwindSafe for MessageLink<M>
impl<M> !Send for MessageLink<M>
impl<M> !Sync for MessageLink<M>
impl<M> Unpin for MessageLink<M>
impl<M> !UnwindSafe for MessageLink<M>
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