Auth Paths fixed
OUTLINE of calls Rho: Iota & Clients. Works Correct File handeling TODO: Omega Connection
This commit is contained in:
parent
044eeb67a6
commit
ba81f3651e
18 changed files with 488 additions and 477 deletions
14
src/calls/caller.rs
Normal file
14
src/calls/caller.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use tokio::sync::mpsc::UnboundedSender;
|
||||
use tungstenite::Utf8Bytes;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Caller {
|
||||
pub user_id: Uuid,
|
||||
pub tx: UnboundedSender<Utf8Bytes>,
|
||||
}
|
||||
impl Caller {
|
||||
pub fn send(&self, msg: impl Into<Utf8Bytes>) {
|
||||
let _ = self.tx.send(msg.into());
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue