File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,34 @@ pub enum Opcode {
52
52
/// }
53
53
/// ```
54
54
BlockingConnect = 6 ,
55
+
56
+ /// Connect to a Server, returning the connection ID or an authentication request if
57
+ /// it exists, and returning ServerNotFound if it does not exist.
58
+ ///
59
+ /// # Message Types
60
+ ///
61
+ /// * MutableLend
62
+ ///
63
+ /// # Arguments
64
+ ///
65
+ /// The memory being pointed to should be a &str, and the length of the string should
66
+ /// be specified in the `valid` field.
67
+ ///
68
+ /// # Return Values
69
+ ///
70
+ /// Memory is overwritten to contain a return value. This return value can be defined
71
+ /// as the following enum:
72
+ ///
73
+ /// ```rust
74
+ /// #[repr(C)]
75
+ /// #[non_exhaustive]
76
+ /// enum ConnectResult {
77
+ /// Success(xous::CID /* connection ID */, [u32; 4] /* Disconnection token */),
78
+ /// Error(u32 /* error code */),
79
+ /// Unhandled, /* Catchall for future Results */
80
+ /// }
81
+ /// ```
82
+ TryConnect = 7 ,
55
83
}
56
84
57
85
#[ derive( Debug , rkyv:: Archive , rkyv:: Serialize , rkyv:: Deserialize ) ]
You can’t perform that action at this time.
0 commit comments