pub enum ControlMsg {
Auth {
subdomain: Option<String>,
nonce: String,
hmac: Option<String>,
},
AuthOk {
subdomain: String,
url: String,
},
Error {
message: String,
},
}Variants§
Auth
Client → Server: subdomain request + HMAC proof.
Client generates nonce; hmac = HMAC-SHA256(secret, nonce) if secret is set.
AuthOk
Error
Implementations§
Trait Implementations§
Source§impl Debug for ControlMsg
impl Debug for ControlMsg
Source§impl<'de> Deserialize<'de> for ControlMsg
impl<'de> Deserialize<'de> for ControlMsg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ControlMsg
impl RefUnwindSafe for ControlMsg
impl Send for ControlMsg
impl Sync for ControlMsg
impl Unpin for ControlMsg
impl UnsafeUnpin for ControlMsg
impl UnwindSafe for ControlMsg
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