pub struct Reaching { /* private fields */ }Expand description
One host, reached through a broker.
Implementations§
Source§impl Reaching
impl Reaching
Sourcepub fn new(session: Arc<Session>, host: Host) -> Self
pub fn new(session: Arc<Session>, host: Host) -> Self
A host that will be connected to through this session when somebody needs it.
Sourcepub fn offering(
&self,
artifact: Artifact,
runtime: impl Into<String>,
) -> Result<(), TransportError>
pub fn offering( &self, artifact: Artifact, runtime: impl Into<String>, ) -> Result<(), TransportError>
Tells it what to provision the far side with, before the first job.
Staged if the wire is not open yet, handed straight over if it is — and either way the far side only receives it if it asks, because the wire announces an artifact’s name and sends the bytes on request.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Reaching
impl !RefUnwindSafe for Reaching
impl Send for Reaching
impl Sync for Reaching
impl Unpin for Reaching
impl UnsafeUnpin for Reaching
impl !UnwindSafe for Reaching
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