pub struct DestinationConstraint {
pub from: HostTuple,
pub to: HostTuple,
}
Expand description
Key destination constraint.
One or more DestinationConstraint
s are included in
the RestrictDestination
key constraint extension.
Note: This is an OpenSSH-specific extension to the agent protocol.
Described in OpenSSH PROTOCOL.agent § 2
Fields§
§from: HostTuple
Constraint’s from
endpoint.
to: HostTuple
Constraint’s to
endpoint.
Trait Implementations§
Source§impl Clone for DestinationConstraint
impl Clone for DestinationConstraint
Source§fn clone(&self) -> DestinationConstraint
fn clone(&self) -> DestinationConstraint
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 DestinationConstraint
impl Debug for DestinationConstraint
Source§impl Decode for DestinationConstraint
impl Decode for DestinationConstraint
Source§impl Encode for DestinationConstraint
impl Encode for DestinationConstraint
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 DestinationConstraint
impl PartialEq for DestinationConstraint
impl StructuralPartialEq for DestinationConstraint
Auto Trait Implementations§
impl Freeze for DestinationConstraint
impl RefUnwindSafe for DestinationConstraint
impl Send for DestinationConstraint
impl Sync for DestinationConstraint
impl Unpin for DestinationConstraint
impl UnwindSafe for DestinationConstraint
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