Link

Trait Link 

Source
pub trait Link: Debug + 'static {
    type Id: Debug + Hash + Eq + PartialEq;

    // Required methods
    fn id(&self) -> Self::Id;
    fn detach(self) -> Result<(), ProgramError>;
}
Expand description

A Link.

Required Associated Types§

Source

type Id: Debug + Hash + Eq + PartialEq

Unique Id

Required Methods§

Source

fn id(&self) -> Self::Id

Returns the link id

Source

fn detach(self) -> Result<(), ProgramError>

Detaches the LinkOwnedLink is gone… but this doesn’t work :(

Implementors§