pub struct LeafContextBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LeafContextBuilder<S>
impl<S: State> LeafContextBuilder<S>
Sourcepub fn build(self) -> LeafContextwhere
S: IsComplete,
pub fn build(self) -> LeafContextwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn receivers(
self,
value: BTreeMap<PortKey, AnyBoxReceiver>,
) -> LeafContextBuilder<SetReceivers<S>>where
S::Receivers: IsUnset,
pub fn receivers(
self,
value: BTreeMap<PortKey, AnyBoxReceiver>,
) -> LeafContextBuilder<SetReceivers<S>>where
S::Receivers: IsUnset,
Sourcepub fn maybe_receivers(
self,
value: Option<BTreeMap<PortKey, AnyBoxReceiver>>,
) -> LeafContextBuilder<SetReceivers<S>>where
S::Receivers: IsUnset,
pub fn maybe_receivers(
self,
value: Option<BTreeMap<PortKey, AnyBoxReceiver>>,
) -> LeafContextBuilder<SetReceivers<S>>where
S::Receivers: IsUnset,
Sourcepub fn senders(
self,
value: BTreeMap<PortKey, AnyBoxSender>,
) -> LeafContextBuilder<SetSenders<S>>where
S::Senders: IsUnset,
pub fn senders(
self,
value: BTreeMap<PortKey, AnyBoxSender>,
) -> LeafContextBuilder<SetSenders<S>>where
S::Senders: IsUnset,
Sourcepub fn maybe_senders(
self,
value: Option<BTreeMap<PortKey, AnyBoxSender>>,
) -> LeafContextBuilder<SetSenders<S>>where
S::Senders: IsUnset,
pub fn maybe_senders(
self,
value: Option<BTreeMap<PortKey, AnyBoxSender>>,
) -> LeafContextBuilder<SetSenders<S>>where
S::Senders: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LeafContextBuilder<S>
impl<S = Empty> !RefUnwindSafe for LeafContextBuilder<S>
impl<S = Empty> !Send for LeafContextBuilder<S>
impl<S = Empty> !Sync for LeafContextBuilder<S>
impl<S> Unpin for LeafContextBuilder<S>
impl<S> UnsafeUnpin for LeafContextBuilder<S>
impl<S = Empty> !UnwindSafe for LeafContextBuilder<S>
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