Struct unbase::slab::Slab
[−]
[src]
pub struct Slab(_);
Methods
impl Slab[src]
pub fn dispatch_memoref(&self, memoref: MemoRef)[src]
Notify interested parties about a newly arrived memoref on this slab
pub fn handle_memo_from_other_slab(
&self,
memo: &Memo,
memoref: &MemoRef,
origin_slabref: &SlabRef
)[src]
&self,
memo: &Memo,
memoref: &MemoRef,
origin_slabref: &SlabRef
)
Perform necessary tasks given a newly arrived memo on this slab
impl Slab[src]
pub fn consider_emit_memo(&self, memoref: &MemoRef)[src]
impl Slab[src]
pub fn new_memo(
&self,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody
) -> MemoRef[src]
&self,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody
) -> MemoRef
pub fn reconstitute_memo(
&self,
memo_id: MemoId,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody,
origin_slabref: &SlabRef,
peerlist: &MemoPeerList
) -> (Memo, MemoRef, bool)[src]
&self,
memo_id: MemoId,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody,
origin_slabref: &SlabRef,
peerlist: &MemoPeerList
) -> (Memo, MemoRef, bool)
pub fn residentize_memoref(&self, memoref: &MemoRef, memo: Memo) -> bool[src]
pub fn remotize_memoref(
&self,
memoref: &MemoRef
) -> Result<(), StorageOpDeclined>[src]
&self,
memoref: &MemoRef
) -> Result<(), StorageOpDeclined>
pub fn request_memo(&self, memoref: &MemoRef) -> u8[src]
pub fn assert_memoref(
&self,
memo_id: MemoId,
subject_id: Option<SubjectId>,
peerlist: MemoPeerList,
memo: Option<Memo>
) -> (MemoRef, bool)[src]
&self,
memo_id: MemoId,
subject_id: Option<SubjectId>,
peerlist: MemoPeerList,
memo: Option<Memo>
) -> (MemoRef, bool)
pub fn assert_slabref(
&self,
slab_id: SlabId,
presence: &[SlabPresence]
) -> SlabRef[src]
&self,
slab_id: SlabId,
presence: &[SlabPresence]
) -> SlabRef
impl Slab[src]
pub fn new_memo_basic(
&self,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody
) -> MemoRef[src]
&self,
subject_id: Option<SubjectId>,
parents: MemoRefHead,
body: MemoBody
) -> MemoRef
pub fn new_memo_basic_noparent(
&self,
subject_id: Option<SubjectId>,
body: MemoBody
) -> MemoRef[src]
&self,
subject_id: Option<SubjectId>,
body: MemoBody
) -> MemoRef
pub fn remotize_memo_ids(
&self,
memo_ids: &[MemoId]
) -> Result<(), StorageOpDeclined>[src]
&self,
memo_ids: &[MemoId]
) -> Result<(), StorageOpDeclined>
pub fn remotize_memo_ids_wait(
&self,
memo_ids: &[MemoId],
ms: u64
) -> Result<(), StorageOpDeclined>[src]
&self,
memo_ids: &[MemoId],
ms: u64
) -> Result<(), StorageOpDeclined>
pub fn presence_for_origin(&self, origin_slabref: &SlabRef) -> SlabPresence[src]
pub fn slabref_from_local_slab(&self, peer_slab: &Self) -> SlabRef[src]
pub fn slabref_from_presence(
&self,
presence: &SlabPresence
) -> Result<SlabRef, &str>[src]
&self,
presence: &SlabPresence
) -> Result<SlabRef, &str>
impl Slab[src]
pub fn count_of_memorefs_resident(&self) -> u32[src]
pub fn count_of_memos_received(&self) -> u64[src]
pub fn count_of_memos_reduntantly_received(&self) -> u64[src]
pub fn peer_slab_count(&self) -> usize[src]
impl Slab[src]
pub fn new(net: &Network) -> Slab[src]
pub fn weak(&self) -> WeakSlab[src]
pub fn get_root_index_seed(&self) -> MemoRefHead[src]
pub fn create_context(&self) -> Context[src]
pub fn memo_wait_channel(&self, memo_id: MemoId) -> Receiver<Memo>[src]
pub fn generate_subject_id(&self, stype: SubjectType) -> SubjectId[src]
pub fn check_memo_waiters(&self, memo: &Memo)[src]
pub fn do_peering(&self, memoref: &MemoRef, origin_slabref: &SlabRef)[src]
Trait Implementations
impl Debug for Slab[src]
fn fmt(&self, fmt: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl Clone for Slab[src]
fn clone(&self) -> Slab[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