pub struct Rtc {}
Expand description
GrouChat module function handling
Implementations
sourceimpl Rtc
impl Rtc
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of RTC module are processed here
sourcefn id_string_to_bin(id: String) -> Result<Vec<u8>, String>
fn id_string_to_bin(id: String) -> Result<Vec<u8>, String>
Convert Group ID from String to Binary
sourcefn request_session(user_id: Vec<u8>)
fn request_session(user_id: Vec<u8>)
session request
sourcefn accept_session(group_id: Vec<u8>)
fn accept_session(group_id: Vec<u8>)
accept session
sourcefn decline_session(group_id: Vec<u8>)
fn decline_session(group_id: Vec<u8>)
decline session
sourcefn end_session(group_id: Vec<u8>)
fn end_session(group_id: Vec<u8>)
end session
sourcefn send_session(group_id: Vec<u8>, message: String)
fn send_session(group_id: Vec<u8>, message: String)
send session
sourcefn list_session()
fn list_session()
session list
Auto Trait Implementations
impl RefUnwindSafe for Rtc
impl Send for Rtc
impl Sync for Rtc
impl Unpin for Rtc
impl UnwindSafe for Rtc
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