pub struct PutExport<T: 'static> { /* private fields */ }Expand description
The FIFO’s put side, handed to a component that needs to put.
An export is a value you connect, not a value you keep: the usual life of one is a single line in the parent’s connect phase.
Implementations§
Source§impl<T: 'static> PutExport<T>
impl<T: 'static> PutExport<T>
Sourcepub fn connect(&self, owner: &dyn PortOwner, name: PortName<dyn PutIf<T>>)
pub fn connect(&self, owner: &dyn PortOwner, name: PortName<dyn PutIf<T>>)
Connect this export to owner’s port called name.
owner is a child slot (&self.producer) or the connecting component
itself (self) — both are PortOwner. name is the derive-generated
constant, so it cannot be misspelled and cannot name a get port.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for PutExport<T>
impl<T> !Send for PutExport<T>
impl<T> !Sync for PutExport<T>
impl<T> !UnwindSafe for PutExport<T>
impl<T> Freeze for PutExport<T>
impl<T> Unpin for PutExport<T>
impl<T> UnsafeUnpin for PutExport<T>
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