[][src]Struct holochain_core_types::dna::bridges::Bridge

pub struct Bridge {
    pub presence: BridgePresence,
    pub handle: String,
    pub reference: BridgeReference,
}

A bridge is the definition of a connection to another DNA that runs under the same agency, i.e. in the same conductor.

Defining a bridge means that the code in this DNA can call zome functions of that other DNA.

The other DNA can either be referenced statically by exact DNA address/hash or dynamically by defining the traits that other DNA has to provide in order to be usable as bridge.

Bridges can be required or optional. If a required bridge DNA is not installed this DNA can't run, so required bridges are hard dependencies that have to be enforced by the conductor.

Fields

presence: BridgePresence

Required or optional

handle: String

An arbitrary name of this bridge that is used as handle to reference this bridge in according zome API functions

reference: BridgeReference

Define what other DNA(s) to bridge to

Trait Implementations

impl Clone for Bridge[src]

impl PartialEq<Bridge> for Bridge[src]

impl Debug for Bridge[src]

impl Hash for Bridge[src]

impl StructuralPartialEq for Bridge[src]

impl Serialize for Bridge[src]

impl<'de> Deserialize<'de> for Bridge[src]

Auto Trait Implementations

impl Send for Bridge

impl Sync for Bridge

impl Unpin for Bridge

impl UnwindSafe for Bridge

impl RefUnwindSafe for Bridge

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Clone for T where
    T: Clone
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,