pub struct Channel<K: Kernel> {
initiator_base: ObjectBase<K>,
handler_base: ObjectBase<K>,
active_transaction: Mutex<K, Option<Transaction>>,
}Expand description
The shared state of a channel.
Both endpoint objects hold a ForeignRc to one of these. The endpoints do
not reference each other.
initiator_base and handler_base each carry an independent ObjectBase
lock and can be reached from either endpoint. Never hold both locks at the
same time, as initiator and handler paths would acquire them in opposite
orders.
Fields§
§initiator_base: ObjectBase<K>§handler_base: ObjectBase<K>§active_transaction: Mutex<K, Option<Transaction>>