pub struct AttachConfig<Prod, Cons>{
pub producer: Prod,
pub consumer: Cons,
}Expand description
Builder for the initial Attach<Spawned>. typed-builder enforces
that both producer and consumer are set before .build() can
be called.
Fields§
§producer: Prod§consumer: ConsImplementations§
Source§impl<Prod, Cons> AttachConfig<Prod, Cons>
impl<Prod, Cons> AttachConfig<Prod, Cons>
Trait Implementations§
Source§impl<Prod, Cons> From<AttachConfig<Prod, Cons>> for AttachSpawned<Prod, Cons>
impl<Prod, Cons> From<AttachConfig<Prod, Cons>> for AttachSpawned<Prod, Cons>
Source§fn from(c: AttachConfig<Prod, Cons>) -> Self
fn from(c: AttachConfig<Prod, Cons>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Prod, Cons> Freeze for AttachConfig<Prod, Cons>
impl<Prod, Cons> RefUnwindSafe for AttachConfig<Prod, Cons>where
Prod: RefUnwindSafe,
Cons: RefUnwindSafe,
impl<Prod, Cons> Send for AttachConfig<Prod, Cons>
impl<Prod, Cons> Sync for AttachConfig<Prod, Cons>where
Cons: Sync,
impl<Prod, Cons> Unpin for AttachConfig<Prod, Cons>
impl<Prod, Cons> UnsafeUnpin for AttachConfig<Prod, Cons>where
Prod: UnsafeUnpin,
Cons: UnsafeUnpin,
impl<Prod, Cons> UnwindSafe for AttachConfig<Prod, Cons>where
Prod: UnwindSafe,
Cons: UnwindSafe,
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