pub struct Caller {
pub address: IpAddr,
pub name: Option<String>,
}Expand description
Who is calling, as far as this server can tell.
Deliberately more than the transport needs today. spec.md asks that the
per-request hook be “shaped so that identity-derived authorisation can be
added later without changing the transport”, and a hook that carried only
an address would have to change shape the first time a rule wanted a name.
Fields§
§address: IpAddrWhere the request came from.
name: Option<String>The tailnet name of the node at that address, when it is one of this node’s peers.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Caller
impl RefUnwindSafe for Caller
impl Send for Caller
impl Sync for Caller
impl Unpin for Caller
impl UnsafeUnpin for Caller
impl UnwindSafe for Caller
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