pub struct Network { /* private fields */ }
Implementations
sourceimpl Network
impl Network
pub fn set_reliable(&mut self, yes: bool)
pub fn set_long_reordering(&mut self, yes: bool)
pub fn set_long_delays(&mut self, yes: bool)
pub fn stop(&mut self)
pub fn stopped(&self) -> bool
pub fn make_client<C: Into<ClientIdentifier>, S: Into<ServerIdentifier>>(
&mut self,
client: C,
server: S
) -> Client
pub fn set_enable_client<C: AsRef<str>>(&mut self, client: C, yes: bool)
pub fn add_server<S: Into<ServerIdentifier>>(
&mut self,
server_name: S,
server: Server
)
pub fn remove_server<S: AsRef<str>>(&mut self, server_name: S)
pub fn get_rpc_count<S: AsRef<str>>(&self, server_name: S) -> Option<usize>
pub fn get_total_rpc_count(&self) -> usize
Auto Trait Implementations
impl !RefUnwindSafe for Network
impl Send for Network
impl !Sync for Network
impl Unpin for Network
impl !UnwindSafe for Network
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