pub struct SshExecuteContext<'a> {
pub users: &'a UsersMap,
pub current_user: &'a str,
}
Expand description
Context of ssh server passed to every custom function.
For example, it’s allows to implement program that modifies user password.
Fields§
§users: &'a UsersMap
Users registered in server.
current_user: &'a str
Current user’s login.
Implementations§
Source§impl<'a> SshExecuteContext<'a>
impl<'a> SshExecuteContext<'a>
Sourcepub fn current_admin(&self) -> bool
pub fn current_admin(&self) -> bool
Return true if current user has admin flag.
Auto Trait Implementations§
impl<'a> Freeze for SshExecuteContext<'a>
impl<'a> RefUnwindSafe for SshExecuteContext<'a>
impl<'a> Send for SshExecuteContext<'a>
impl<'a> Sync for SshExecuteContext<'a>
impl<'a> Unpin for SshExecuteContext<'a>
impl<'a> UnwindSafe for SshExecuteContext<'a>
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