#[non_exhaustive]pub enum Link2Result {
Accept,
Busy,
Unknown {
reply: [u8; 4],
},
}Expand description
Result of a DPlus LINK2 reply.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Accept
Server returned b"OKRW" — login accepted.
Busy
Server returned b"BUSY" — login refused.
Unknown
Server returned a 4-byte tag that doesn’t match any known reply.
Trait Implementations§
Source§impl Clone for Link2Result
impl Clone for Link2Result
Source§fn clone(&self) -> Link2Result
fn clone(&self) -> Link2Result
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 Link2Result
impl Debug for Link2Result
Source§impl PartialEq for Link2Result
impl PartialEq for Link2Result
impl Copy for Link2Result
impl Eq for Link2Result
impl StructuralPartialEq for Link2Result
Auto Trait Implementations§
impl Freeze for Link2Result
impl RefUnwindSafe for Link2Result
impl Send for Link2Result
impl Sync for Link2Result
impl Unpin for Link2Result
impl UnwindSafe for Link2Result
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