pub struct CallerIdentity { /* private fields */ }Implementations§
Source§impl CallerIdentity
impl CallerIdentity
Sourcepub fn lookup(accepted: &TcpStream) -> Self
pub fn lookup(accepted: &TcpStream) -> Self
Resolve the connecting process from an accepted stream. This best-effort OS lookup is blocking and supplies descriptive information only.
pub fn pid(&self) -> Option<u32>
Sourcepub fn executable(&self) -> Option<&Path>
pub fn executable(&self) -> Option<&Path>
The executable key for caller cooldowns, or None when the connection
must be used as the fallback key instead.
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
An unbounded description. Prompt builders must still sanitize and limit the executable path to their own text budget.
Trait Implementations§
Source§impl Clone for CallerIdentity
impl Clone for CallerIdentity
Source§impl Debug for CallerIdentity
impl Debug for CallerIdentity
Source§impl Default for CallerIdentity
impl Default for CallerIdentity
impl Eq for CallerIdentity
Source§impl PartialEq for CallerIdentity
impl PartialEq for CallerIdentity
impl StructuralPartialEq for CallerIdentity
Auto Trait Implementations§
impl Forget for CallerIdentity
impl Freeze for CallerIdentity
impl Move for CallerIdentity
impl RefUnwindSafe for CallerIdentity
impl Send for CallerIdentity
impl Sync for CallerIdentity
impl Unpin for CallerIdentity
impl UnsafeUnpin for CallerIdentity
impl UnwindSafe for CallerIdentity
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