pub enum Message {
UserRequest(UserRequest),
UserOnlineRequest(UserOnlineRequest),
UserList(UserList),
UserUpdate(UserEntry),
SecurityNumberRequest(SecurityNumberRequest),
SecurityNumberResponse(SecurityNumberResponse),
}
Variants
UserRequest(UserRequest)
User Request returns a user list containing all users with their connectivity field set to either online or offline. The connections are not set.
UserOnlineRequest(UserOnlineRequest)
User Online Request returns a user list of all users currently online in the network. Each user has
UserList(UserList)
User List
Libqaul’s return message for ‘UserRequest’ and ‘UserOnlineRequest’, containing a list of UserEntry’s
UserUpdate(UserEntry)
User Update
Sent to libqaul to update the verification & blocked fields of a user. All other fields will be ignored.
SecurityNumberRequest(SecurityNumberRequest)
Security Number Request
Requests the specific security number for for the connection with this user.
SecurityNumberResponse(SecurityNumberResponse)
Security Number Response
Libqaul’s response containing the security number.
The security number contains 8 blocks of 5 digit numbers. They shall be rendered in two rows. If a number is smaller then five-digits, the missing digits shall be filled with leading zeros.
example rendering of security number: 13246 42369 46193 12484 12142 31101 09874 34545
Implementations
sourceimpl Message
impl Message
sourcepub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
pub fn merge<B>(
field: &mut Option<Message>,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations
impl StructuralPartialEq for Message
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more