pub struct LemidLinks {
pub links_by_agent_id: HashMap<MeshId, Vec<LemidLink>>,
pub links_by_link_code: HashMap<MeshLinkCode, LemidLink>,
pub links_by_link_code_postfix: HashMap<SessionLinkCodeSegment, LemidLink>,
}
Fields§
§links_by_agent_id: HashMap<MeshId, Vec<LemidLink>>
§links_by_link_code: HashMap<MeshLinkCode, LemidLink>
§links_by_link_code_postfix: HashMap<SessionLinkCodeSegment, LemidLink>
Implementations§
source§impl LemidLinks
impl LemidLinks
pub fn new() -> LemidLinks
pub fn add_lemid(&mut self, agent_id: MeshId, lemid: LinkedEntityKeychainMeshId)
pub fn add_lemid_with_link_code( &mut self, agent_id: MeshId, lemid: LinkedEntityKeychainMeshId, session_link_code_created_with: Option<MeshLinkCode>, )
pub fn add_link(&mut self, agent_id: MeshId, link: LemidLink)
pub fn get_link_with_postfix( &self, postfix: SessionLinkCodeSegment, ) -> Result<LinkedEntityKeychainMeshId, MeshError>
pub fn get_link( &self, agent_id: MeshId, lemid: Option<LinkedEntityKeychainMeshId>, ) -> Result<LinkedEntityKeychainMeshId, MeshError>
pub fn get_links(&self, agent_id: MeshId) -> Vec<LinkedEntityKeychainMeshId>
pub fn get_lemid_for_link_code( &self, link_code: MeshLinkCode, ) -> Option<LinkedEntityKeychainMeshId>
Trait Implementations§
source§impl Clone for LemidLinks
impl Clone for LemidLinks
source§fn clone(&self) -> LemidLinks
fn clone(&self) -> LemidLinks
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LemidLinks
impl Debug for LemidLinks
source§impl From<LookupLinkedEntitiesResult> for LemidLinks
impl From<LookupLinkedEntitiesResult> for LemidLinks
source§fn from(result: LookupLinkedEntitiesResult) -> LemidLinks
fn from(result: LookupLinkedEntitiesResult) -> LemidLinks
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LemidLinks
impl RefUnwindSafe for LemidLinks
impl Send for LemidLinks
impl Sync for LemidLinks
impl Unpin for LemidLinks
impl UnwindSafe for LemidLinks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)