[][src]Struct dsf_core::base::HeaderBuilder

pub struct HeaderBuilder { /* fields omitted */ }

Builder for Header.

Methods

impl HeaderBuilder[src]

pub fn protocol_version(&mut self, value: u16) -> &mut Self[src]

pub fn application_id(&mut self, value: u16) -> &mut Self[src]

pub fn kind(&mut self, value: Kind) -> &mut Self[src]

Object kind

pub fn flags(&mut self, value: Flags) -> &mut Self[src]

pub fn index(&mut self, value: u16) -> &mut Self[src]

Index is the Page Version for Pages, or the Request ID for messages

pub fn build(&self) -> Result<Header, String>[src]

Builds a new Header.

Errors

If a required field has not been initialized.

impl HeaderBuilder[src]

pub fn address_request(&mut self) -> &mut Self[src]

Trait Implementations

impl Clone for HeaderBuilder[src]

impl Default for HeaderBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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