#[repr(u32)]pub enum WellKnownToken {
EndpointNotFound = 0,
Ping = 1,
UnauthorizedEndpoint = 2,
FirstAvailable = 3,
}Expand description
Well-known endpoint tokens (FDB-compatible pattern).
These tokens are used for system services that need deterministic addressing without service discovery. Clients can construct endpoints directly using these well-known tokens.
§FDB Reference
From FlowTransport.h:
enum { WLTOKEN_ENDPOINT_NOT_FOUND = 0, WLTOKEN_PING_PACKET,
WLTOKEN_UNAUTHORIZED_ENDPOINT, WLTOKEN_FIRST_AVAILABLE };Variants§
EndpointNotFound = 0
Response sent when an endpoint is not found. Used to notify senders that their target doesn’t exist.
Ping = 1
Ping for connection health checks. Used by the connection monitor to detect failures.
Unauthorized endpoint access response. Sent when a client tries to access a protected endpoint.
FirstAvailable = 3
First available token for user services. User-defined well-known services should use this value or higher.
Implementations§
Trait Implementations§
Source§impl Clone for WellKnownToken
impl Clone for WellKnownToken
Source§fn clone(&self) -> WellKnownToken
fn clone(&self) -> WellKnownToken
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 moreSource§impl Debug for WellKnownToken
impl Debug for WellKnownToken
Source§impl Hash for WellKnownToken
impl Hash for WellKnownToken
Source§impl PartialEq for WellKnownToken
impl PartialEq for WellKnownToken
impl Copy for WellKnownToken
impl Eq for WellKnownToken
impl StructuralPartialEq for WellKnownToken
Auto Trait Implementations§
impl Freeze for WellKnownToken
impl RefUnwindSafe for WellKnownToken
impl Send for WellKnownToken
impl Sync for WellKnownToken
impl Unpin for WellKnownToken
impl UnwindSafe for WellKnownToken
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