Skip to main content

LinkVerdict

Type Alias LinkVerdict 

Source
pub type LinkVerdict = Result<(), Cow<'static, str>>;
Expand description

Outcome of asking the consumer whether a link is valid.

Ok(()) if the connection is allowed, or Err(reason) with a short human-readable explanation if not. The widget never inspects why a link is valid — any implicit-conversion styling falls out of the ports’ own colors, not from this result.

Aliased Type§

pub enum LinkVerdict {
    Ok(()),
    Err(Cow<'static, str>),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(Cow<'static, str>)

Contains the error value