Struct tor_linkspec::OwnedCircTargetBuilder
source · pub struct OwnedCircTargetBuilder { /* private fields */ }Expand description
Builder for OwnedCircTarget.
Implementations§
source§impl OwnedCircTargetBuilder
impl OwnedCircTargetBuilder
sourcepub fn chan_target(&mut self) -> &mut OwnedChanTargetBuilder
pub fn chan_target(&mut self) -> &mut OwnedChanTargetBuilder
The fields from this object when considered as a ChanTarget.
sourcepub fn ntor_onion_key(&mut self, value: PublicKey) -> &mut Self
pub fn ntor_onion_key(&mut self, value: PublicKey) -> &mut Self
The ntor key to use when extending to this CircTarget
sourcepub fn protocols(&mut self, value: Protocols) -> &mut Self
pub fn protocols(&mut self, value: Protocols) -> &mut Self
The subprotocol versions that this CircTarget supports.
sourcepub fn build(&self) -> Result<OwnedCircTarget, OwnedCircTargetBuilderError>
pub fn build(&self) -> Result<OwnedCircTarget, OwnedCircTargetBuilderError>
Trait Implementations§
source§impl Clone for OwnedCircTargetBuilder
impl Clone for OwnedCircTargetBuilder
source§fn clone(&self) -> OwnedCircTargetBuilder
fn clone(&self) -> OwnedCircTargetBuilder
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 more