[][src]Struct koibumi_core::identity::ChanBuilder

pub struct ChanBuilder { /* fields omitted */ }

A builder for building a chan identity.

Implementations

impl ChanBuilder[src]

pub fn version(&mut self, v: AddressVersion) -> &mut Self[src]

Sets the address version.

pub fn stream(&mut self, v: StreamNumber) -> &mut Self[src]

Sets the stream number.

pub fn build(&self, cancel: Arc<AtomicBool>) -> Result<Private, Error>[src]

Returns the private identity this builder represents.

Trait Implementations

impl Clone for ChanBuilder[src]

impl Debug for ChanBuilder[src]

impl Eq for ChanBuilder[src]

impl Hash for ChanBuilder[src]

impl PartialEq<ChanBuilder> for ChanBuilder[src]

impl StructuralEq for ChanBuilder[src]

impl StructuralPartialEq for ChanBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.