#[non_exhaustive]pub struct LinkAttempt {
pub protocol: ProtocolKind,
pub callsign: Callsign,
pub peer: SocketAddr,
pub module: Module,
}Expand description
One link attempt observed by the reflector.
Carries the structured inputs an authorizer typically needs — protocol, callsign, peer address, and requested module — without leaking any wire-level details.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.protocol: ProtocolKindProtocol the link came in on.
callsign: CallsignLinking client’s callsign.
peer: SocketAddrClient’s source address.
module: ModuleModule the client wants to link to.
Trait Implementations§
Source§impl Clone for LinkAttempt
impl Clone for LinkAttempt
Source§fn clone(&self) -> LinkAttempt
fn clone(&self) -> LinkAttempt
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 moreAuto Trait Implementations§
impl Freeze for LinkAttempt
impl RefUnwindSafe for LinkAttempt
impl Send for LinkAttempt
impl Sync for LinkAttempt
impl Unpin for LinkAttempt
impl UnwindSafe for LinkAttempt
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