pub enum RequestId {
Sequential(u64),
Uuid(SmartString),
}Expand description
Request ID management for tracking WebSocket requests
Variants§
Implementations§
Source§impl RequestId
impl RequestId
Sourcepub fn new_sequential(counter: &AtomicU64) -> Self
pub fn new_sequential(counter: &AtomicU64) -> Self
Generate a new sequential request ID
Sourcepub fn as_json_value(&self) -> JsonValue
pub fn as_json_value(&self) -> JsonValue
Get the request ID as a JSON value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RequestId
impl RefUnwindSafe for RequestId
impl Send for RequestId
impl Sync for RequestId
impl Unpin for RequestId
impl UnwindSafe for RequestId
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