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 moreSource§impl Debug for OwnedCircTargetBuilder
impl Debug for OwnedCircTargetBuilder
Auto Trait Implementations§
impl Freeze for OwnedCircTargetBuilder
impl RefUnwindSafe for OwnedCircTargetBuilder
impl Send for OwnedCircTargetBuilder
impl Sync for OwnedCircTargetBuilder
impl Unpin for OwnedCircTargetBuilder
impl UnwindSafe for OwnedCircTargetBuilder
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more