Struct unbase::network::Network
[−]
[src]
pub struct Network(_);
Methods
impl Network
[src]
pub fn new() -> Network
[src]
Network handle This represents your joining an existing unbase system. (In production, this is the one you want)
pub fn create_new_system() -> Network
[src]
In test cases, you want to create a wholly new unbase system. You should not be using this in production, except the first time ever for that system
pub fn hack_set_next_slab_id(&self, id: SlabId)
[src]
pub fn weak(&self) -> WeakNetwork
[src]
pub fn add_transport(&self, transport: Box<Transport + Send + Sync>)
[src]
pub fn generate_slab_id(&self) -> u32
[src]
pub fn get_slab(&self, slab_id: SlabId) -> Option<Slab>
[src]
pub fn get_all_local_slabs(&self) -> Vec<Slab>
[src]
pub fn get_transmitter(&self, args: &TransmitterArgs) -> Option<Transmitter>
[src]
pub fn get_return_address<'a>(
&self,
address: &TransportAddress
) -> Option<TransportAddress>
[src]
&self,
address: &TransportAddress
) -> Option<TransportAddress>
pub fn register_local_slab(&self, new_slab: &Slab)
[src]
pub fn deregister_local_slab(&self, slab_id: SlabId)
[src]
pub fn get_root_index_seed(&self, slab: &Slab) -> MemoRefHead
[src]
pub fn conditionally_generate_root_index_seed(&self, slab: &Slab) -> bool
[src]
pub fn apply_root_index_seed(
&self,
_presence: &SlabPresence,
root_index_seed: &MemoRefHead,
resident_slabref: &SlabRef
) -> bool
[src]
&self,
_presence: &SlabPresence,
root_index_seed: &MemoRefHead,
resident_slabref: &SlabRef
) -> bool
When we receive a root_index_seed from a peer slab that's already attached to a system, we need to apply it in order to "join" the same system
TODO: how do we decide if we want to accept this? do we just take any system seed that is sent to us when unseeded? Probably good enough for Alpha, but obviously not good enough for Beta
Trait Implementations
impl Clone for Network
[src]
fn clone(&self) -> Network
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for Network
[src]
type Target = NetworkInner
The resulting type after dereferencing.
fn deref(&self) -> &NetworkInner
[src]
Dereferences the value.