pub struct Ready(pub u32);
Expand description
Allows Consumer to change Connection/s RDY
§Examples
struct Consumer(Addr<Connection>);
impl Actor for Consumer {
type Context = Context<Self>;
fn started(&mut self, _: &mut Self::Context) {
self.conn.do_send(Ready(3));
}
}
Tuple Fields§
§0: u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ready
impl RefUnwindSafe for Ready
impl Send for Ready
impl Sync for Ready
impl Unpin for Ready
impl UnwindSafe for Ready
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