Struct tor_linkspec::OwnedChanTargetBuilder
source · pub struct OwnedChanTargetBuilder { /* private fields */ }Expand description
Builder for OwnedChanTarget.
Implementations§
source§impl OwnedChanTargetBuilder
impl OwnedChanTargetBuilder
sourcepub fn addrs(&mut self, value: Vec<SocketAddr>) -> &mut Self
pub fn addrs(&mut self, value: Vec<SocketAddr>) -> &mut Self
Copy of the addresses from the underlying ChanTarget.
sourcepub fn method(&mut self, value: ChannelMethod) -> &mut Self
pub fn method(&mut self, value: ChannelMethod) -> &mut Self
Copy of the channel methods from the underlying ChanTarget.
sourcepub fn ids(&mut self) -> &mut RelayIdsBuilder
pub fn ids(&mut self) -> &mut RelayIdsBuilder
Identities that this relay provides.
sourcepub fn build(&self) -> Result<OwnedChanTarget, OwnedChanTargetBuilderError>
pub fn build(&self) -> Result<OwnedChanTarget, OwnedChanTargetBuilderError>
source§impl OwnedChanTargetBuilder
impl OwnedChanTargetBuilder
sourcepub fn ed_identity(&mut self, id: Ed25519Identity) -> &mut Self
pub fn ed_identity(&mut self, id: Ed25519Identity) -> &mut Self
Set the ed25519 identity in this builder to id.
sourcepub fn rsa_identity(&mut self, id: RsaIdentity) -> &mut Self
pub fn rsa_identity(&mut self, id: RsaIdentity) -> &mut Self
Set the RSA identity in this builder to id.
Trait Implementations§
source§impl Clone for OwnedChanTargetBuilder
impl Clone for OwnedChanTargetBuilder
source§fn clone(&self) -> OwnedChanTargetBuilder
fn clone(&self) -> OwnedChanTargetBuilder
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