[][src]Struct hypercore_protocol::schema::Close

pub struct Close {
    pub discovery_key: Option<Vec<u8>>,
}

type=10, explicitly close a channel.

Fields

discovery_key: Option<Vec<u8>>

only send this if you did not do an open

Implementations

impl Close[src]

pub fn discovery_key(&self) -> &[u8][src]

Returns the value of discovery_key, or the default value if discovery_key is unset.

Trait Implementations

impl Clone for Close[src]

impl Debug for Close[src]

impl Default for Close[src]

impl Message for Close[src]

impl PartialEq<Close> for Close[src]

impl StructuralPartialEq for Close[src]

Auto Trait Implementations

impl RefUnwindSafe for Close

impl Send for Close

impl Sync for Close

impl Unpin for Close

impl UnwindSafe for Close

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,