Struct netidx_netproto::resolver::UserInfo
source · pub struct UserInfo {
pub name: ArcStr,
pub primary_group: ArcStr,
pub groups: SmallVec<[ArcStr; 16]>,
pub resolver: SocketAddr,
pub token: Bytes,
}
Fields§
§name: ArcStr
§primary_group: ArcStr
§groups: SmallVec<[ArcStr; 16]>
§resolver: SocketAddr
§token: Bytes
Trait Implementations§
source§impl Ord for UserInfo
impl Ord for UserInfo
source§impl Pack for UserInfo
impl Pack for UserInfo
fn encoded_len(&self) -> usize
fn encode(&self, buf: &mut impl BufMut) -> Result<(), PackError>
fn decode(buf: &mut impl Buf) -> Result<Self, PackError>
fn const_encoded_len() -> Option<usize>
fn decode_into(&mut self, buf: &mut impl Buf) -> Result<(), PackError>where Self: Sized,
source§impl PartialEq<UserInfo> for UserInfo
impl PartialEq<UserInfo> for UserInfo
source§impl PartialOrd<UserInfo> for UserInfo
impl PartialOrd<UserInfo> for UserInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for UserInfo
impl StructuralEq for UserInfo
impl StructuralPartialEq for UserInfo
Auto Trait Implementations§
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.