pub struct Token {
pub kind: u64,
pub value: Vec<u8>,
}Expand description
A credential a moq-transport peer presented in its SETUP’s AUTHORIZATION TOKEN option.
The transport never reads the bytes; verifying them is the application’s job.
Fields§
§kind: u64The wire Token Type, naming how value is encoded.
value: Vec<u8>The token itself.
Implementations§
Trait Implementations§
impl Eq for Token
impl StructuralPartialEq for Token
Auto Trait Implementations§
impl Freeze for Token
impl RefUnwindSafe for Token
impl Send for Token
impl Sync for Token
impl Unpin for Token
impl UnsafeUnpin for Token
impl UnwindSafe for Token
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