pub struct Bootstrap { /* private fields */ }Expand description
Bootstrap functionality for SSH transport
Implementations§
Source§impl Bootstrap
impl Bootstrap
Sourcepub fn with_custom_script(self, script: String) -> Self
pub fn with_custom_script(self, script: String) -> Self
Set a custom bootstrap script template
Sourcepub async fn detect_platform<T: Transport>(
&mut self,
transport: &mut T,
) -> Result<&PlatformInfo, TransportError>
pub async fn detect_platform<T: Transport>( &mut self, transport: &mut T, ) -> Result<&PlatformInfo, TransportError>
Detect platform information from the remote host
Sourcepub fn generate_bootstrap_script(
&self,
_agent_binary: &[u8],
) -> Result<String, TransportError>
pub fn generate_bootstrap_script( &self, _agent_binary: &[u8], ) -> Result<String, TransportError>
Generate bootstrap script for the detected platform
Sourcepub async fn execute_bootstrap<T: Transport>(
&self,
transport: &mut T,
agent_binary: &[u8],
) -> Result<(), TransportError>
pub async fn execute_bootstrap<T: Transport>( &self, transport: &mut T, agent_binary: &[u8], ) -> Result<(), TransportError>
Execute bootstrap on the remote host
Sourcepub fn platform_info(&self) -> Option<&PlatformInfo>
pub fn platform_info(&self) -> Option<&PlatformInfo>
Get platform information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Bootstrap
impl RefUnwindSafe for Bootstrap
impl Send for Bootstrap
impl Sync for Bootstrap
impl Unpin for Bootstrap
impl UnwindSafe for Bootstrap
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