pub struct LeafContext {
pub receivers: BTreeMap<PortKey, AnyBoxReceiver>,
pub senders: BTreeMap<PortKey, AnyBoxSender>,
}Fields§
§receivers: BTreeMap<PortKey, AnyBoxReceiver>§senders: BTreeMap<PortKey, AnyBoxSender>Implementations§
Source§impl LeafContext
impl LeafContext
Sourcepub fn builder() -> LeafContextBuilder
pub fn builder() -> LeafContextBuilder
Create an instance of LeafContext using the builder syntax
Source§impl LeafContext
impl LeafContext
pub fn new() -> Self
pub fn take_receiver(&mut self, key: &PortKey) -> Result<AnyBoxReceiver>
pub fn take_sender(&mut self, key: &PortKey) -> Result<AnyBoxSender>
Trait Implementations§
Source§impl Debug for LeafContext
impl Debug for LeafContext
Source§impl Default for LeafContext
impl Default for LeafContext
Source§fn default() -> LeafContext
fn default() -> LeafContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LeafContext
impl !RefUnwindSafe for LeafContext
impl !Send for LeafContext
impl !Sync for LeafContext
impl Unpin for LeafContext
impl UnsafeUnpin for LeafContext
impl !UnwindSafe for LeafContext
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