pub struct AgentParts {
pub dispatcher: Dispatcher,
pub registrar: Registrar,
pub driver: BusDriver,
pub agent: Agent,
}Expand description
An agent taken apart by Agent::into_parts: the same agent, now over
the bus as a host would hold it, plus the dispatcher and the driver.
Fields§
§dispatcher: DispatcherThe bus’s client half.
registrar: RegistrarThe bus’s registration handle: register on the bus once the driver is spawned.
driver: BusDriverThe bus’s serving half: spawn it or drive it, or the agent hangs.
agent: AgentThe agent, now over the bus rather than owning it.
Auto Trait Implementations§
impl !Freeze for AgentParts
impl !RefUnwindSafe for AgentParts
impl !Sync for AgentParts
impl !UnwindSafe for AgentParts
impl Send for AgentParts
impl Unpin for AgentParts
impl UnsafeUnpin for AgentParts
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