pub struct SshEndpointConfig { /* private fields */ }Expand description
Validated connection details for one named macOS worker.
Implementations§
Source§impl SshEndpointConfig
impl SshEndpointConfig
Sourcepub fn new(
remote_name: SshRemoteName,
host: SshHost,
user: SshUser,
port: u16,
known_hosts_file: Utf8PathBuf,
host_key_sha256: SshHostKeySha256,
identity_file: Option<Utf8PathBuf>,
) -> Result<Self, SshConfigError>
pub fn new( remote_name: SshRemoteName, host: SshHost, user: SshUser, port: u16, known_hosts_file: Utf8PathBuf, host_key_sha256: SshHostKeySha256, identity_file: Option<Utf8PathBuf>, ) -> Result<Self, SshConfigError>
Create a named endpoint backed by one dedicated known-hosts file.
The dedicated trust file is parsed and fingerprinted. The identity value remains an absolute path reference; its private-key bytes are never read.
§Errors
Returns a typed error when a port or security-sensitive file is unsafe.
Sourcepub fn validate_files(&self) -> Result<(), SshConfigError>
pub fn validate_files(&self) -> Result<(), SshConfigError>
Re-check mutable filesystem boundaries before every connection.
§Errors
Returns a typed error if a trusted path was replaced or removed.
Sourcepub fn remote_name(&self) -> &SshRemoteName
pub fn remote_name(&self) -> &SshRemoteName
Stable configured endpoint name.
Sourcepub fn known_hosts_file(&self) -> &Utf8Path
pub fn known_hosts_file(&self) -> &Utf8Path
Dedicated known-hosts file.
Sourcepub fn host_key_sha256(&self) -> &SshHostKeySha256
pub fn host_key_sha256(&self) -> &SshHostKeySha256
Exact host-key fingerprint required from the dedicated trust file.
Sourcepub fn identity_file(&self) -> Option<&Utf8Path>
pub fn identity_file(&self) -> Option<&Utf8Path>
Optional private-key path reference. File bytes are never exposed.
Trait Implementations§
Source§impl Clone for SshEndpointConfig
impl Clone for SshEndpointConfig
Source§impl Debug for SshEndpointConfig
impl Debug for SshEndpointConfig
impl Eq for SshEndpointConfig
Source§impl PartialEq for SshEndpointConfig
impl PartialEq for SshEndpointConfig
impl StructuralPartialEq for SshEndpointConfig
Auto Trait Implementations§
impl Freeze for SshEndpointConfig
impl RefUnwindSafe for SshEndpointConfig
impl Send for SshEndpointConfig
impl Sync for SshEndpointConfig
impl Unpin for SshEndpointConfig
impl UnsafeUnpin for SshEndpointConfig
impl UnwindSafe for SshEndpointConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.