pub struct HostTuple {
pub username: String,
pub hostname: String,
pub keys: Vec<KeySpec>,
}
Expand description
Tuple containing username and hostname with keys.
Note: This is an OpenSSH-specific extension to the agent protocol.
Described in OpenSSH PROTOCOL.agent § 2
Fields§
§username: String
Username part of the tuple.
hostname: String
Hostname part of the tuple.
keys: Vec<KeySpec>
Set of keys for the tuple.
Trait Implementations§
Source§impl Encode for HostTuple
impl Encode for HostTuple
Source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
Encode this value using the provided
Writer
.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32
length prefix
set to Encode::encoded_len
.impl StructuralPartialEq for HostTuple
Auto Trait Implementations§
impl Freeze for HostTuple
impl RefUnwindSafe for HostTuple
impl Send for HostTuple
impl Sync for HostTuple
impl Unpin for HostTuple
impl UnwindSafe for HostTuple
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