pub struct RestrictDestination {
pub constraints: Vec<DestinationConstraint>,
}
Expand description
restrict-destination-v00@openssh.com
key constraint extension.
The key constraint extension supports destination- and forwarding path- restricted keys. It may be attached as a constraint when keys or smartcard keys are added to an agent.
Note: This is an OpenSSH-specific extension to the agent protocol.
Described in OpenSSH PROTOCOL.agent § 2
Fields§
§constraints: Vec<DestinationConstraint>
Set of constraints for the destination.
Trait Implementations§
Source§impl Clone for RestrictDestination
impl Clone for RestrictDestination
Source§fn clone(&self) -> RestrictDestination
fn clone(&self) -> RestrictDestination
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RestrictDestination
impl Debug for RestrictDestination
Source§impl Decode for RestrictDestination
impl Decode for RestrictDestination
Source§impl Encode for RestrictDestination
impl Encode for RestrictDestination
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
.Source§impl PartialEq for RestrictDestination
impl PartialEq for RestrictDestination
impl StructuralPartialEq for RestrictDestination
Auto Trait Implementations§
impl Freeze for RestrictDestination
impl RefUnwindSafe for RestrictDestination
impl Send for RestrictDestination
impl Sync for RestrictDestination
impl Unpin for RestrictDestination
impl UnwindSafe for RestrictDestination
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