pub enum Response {
Failure,
Success,
IdentitiesAnswer(Vec<Identity>),
SignResponse(Signature),
ExtensionFailure,
ExtensionResponse(Extension),
}
Expand description
SSH agent protocol response messages.
These message types are sent to a client from an agent (in response to a Request
message).
Described in draft-miller-ssh-agent-14 § 3.
Variants§
Failure
Indicates generic agent failure
Success
Indicates generic agent success
IdentitiesAnswer(Vec<Identity>)
A list of identities, sent in response to
a Request::RequestIdentities
message.
SignResponse(Signature)
A signature, sent in response to
a Request::SignRequest
message.
ExtensionFailure
Indicates generic extension failure
ExtensionResponse(Extension)
Send a vendor-specific response message via the agent protocol, identified by an extension type.
Implementations§
Source§impl Response
impl Response
Sourcepub fn message_id(&self) -> u8
pub fn message_id(&self) -> u8
The protocol message identifier for a given Response
message type.
Described in draft-miller-ssh-agent-14 § 6.1.
Trait Implementations§
Source§impl Encode for Response
impl Encode for Response
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 Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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