pub struct Dtn {}
Expand description
Group module function handling
Implementations
sourceimpl Dtn
impl Dtn
sourcepub fn cli(command: &str)
pub fn cli(command: &str)
CLI command interpretation
The CLI commands of dtn 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 dtn_config()
fn dtn_config()
dtn state
sourcefn dtn_add_user(user_id: Vec<u8>)
fn dtn_add_user(user_id: Vec<u8>)
dtn add user
sourcefn dtn_remove_user(user_id: Vec<u8>)
fn dtn_remove_user(user_id: Vec<u8>)
dtn remove user
sourcefn dtn_total_size(total_size: u32)
fn dtn_total_size(total_size: u32)
dtn total_size
Auto Trait Implementations
impl RefUnwindSafe for Dtn
impl Send for Dtn
impl Sync for Dtn
impl Unpin for Dtn
impl UnwindSafe for Dtn
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