pub enum Caller {
LocalApp {
app: String,
peer: PeerIdentity,
},
Device {
id: String,
scopes: BTreeSet<Scope>,
},
}Expand description
Who is making a request.
Variants§
LocalApp
A local app on this machine. app is the label declared in hello (a claim, an allowlist
key); peer is what the OS verified about the other end.
Device
A remote device identified by its id, with the scopes it was enrolled with.
Implementations§
Trait Implementations§
impl Eq for Caller
impl StructuralPartialEq for Caller
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