[][src]Struct hypercore_protocol::schema::Unhave

pub struct Unhave {
    pub start: u64,
    pub length: Option<u64>,
}

type=4, what did we lose?

Fields

start: u64length: Option<u64>

defaults to 1

Implementations

impl Unhave[src]

pub fn length(&self) -> u64[src]

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

Trait Implementations

impl Clone for Unhave[src]

impl Debug for Unhave[src]

impl Default for Unhave[src]

impl Message for Unhave[src]

impl PartialEq<Unhave> for Unhave[src]

impl StructuralPartialEq for Unhave[src]

Auto Trait Implementations

impl RefUnwindSafe for Unhave

impl Send for Unhave

impl Sync for Unhave

impl Unpin for Unhave

impl UnwindSafe for Unhave

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>,