pub struct SSHAgentParams { /* private fields */ }
Expand description
Struct representing SSH Agent parameters.
CDDL:
SSHAgentParams = [4, Salt, id: tstr]
Implementations§
Source§impl SSHAgentParams
impl SSHAgentParams
pub fn new() -> Self
pub fn new_opt( salt: Salt, id: impl AsRef<str>, agent: Option<Rc<RefCell<dyn SSHAgent + 'static>>>, ) -> Self
pub fn salt(&self) -> &Salt
pub fn id(&self) -> &String
pub fn agent(&self) -> Option<Rc<RefCell<dyn SSHAgent + 'static>>>
pub fn set_agent(&mut self, agent: Option<Rc<RefCell<dyn SSHAgent + 'static>>>)
Trait Implementations§
Source§impl Clone for SSHAgentParams
impl Clone for SSHAgentParams
Source§fn clone(&self) -> SSHAgentParams
fn clone(&self) -> SSHAgentParams
Returns a duplicate 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 SSHAgentParams
impl Debug for SSHAgentParams
Source§impl Default for SSHAgentParams
impl Default for SSHAgentParams
Source§impl Display for SSHAgentParams
impl Display for SSHAgentParams
Source§impl From<SSHAgentParams> for CBOR
impl From<SSHAgentParams> for CBOR
Source§fn from(val: SSHAgentParams) -> Self
fn from(val: SSHAgentParams) -> Self
Converts to this type from the input type.
Source§impl KeyDerivation for SSHAgentParams
impl KeyDerivation for SSHAgentParams
const INDEX: usize = 4usize
fn lock( &mut self, content_key: &SymmetricKey, secret: impl AsRef<[u8]>, ) -> Result<EncryptedMessage>
fn unlock( &self, encrypted_message: &EncryptedMessage, secret: impl AsRef<[u8]>, ) -> Result<SymmetricKey>
Source§impl PartialEq for SSHAgentParams
impl PartialEq for SSHAgentParams
Source§impl TryFrom<CBOR> for SSHAgentParams
impl TryFrom<CBOR> for SSHAgentParams
impl Eq for SSHAgentParams
Auto Trait Implementations§
impl Freeze for SSHAgentParams
impl !RefUnwindSafe for SSHAgentParams
impl !Send for SSHAgentParams
impl !Sync for SSHAgentParams
impl Unpin for SSHAgentParams
impl !UnwindSafe for SSHAgentParams
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