Skip to main content

IslGossipTelecommandBuilder

Struct IslGossipTelecommandBuilder 

Source
pub struct IslGossipTelecommandBuilder<'a, S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<'a, S: State> IslGossipTelecommandBuilder<'a, S>

Source

pub fn build(self) -> Result<&'a mut IslGossipTelecommand, GossipMessageError>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn buffer( self, value: &'a mut [u8], ) -> IslGossipTelecommandBuilder<'a, SetBuffer<S>>
where S::Buffer: IsUnset,

Required.

Source

pub fn apid(self, value: Apid) -> IslGossipTelecommandBuilder<'a, SetApid<S>>
where S::Apid: IsUnset,

Required.

Source

pub fn function_code( self, value: u8, ) -> IslGossipTelecommandBuilder<'a, SetFunctionCode<S>>
where S::FunctionCode: IsUnset,

Required.

Source

pub fn origin( self, value: Address, ) -> IslGossipTelecommandBuilder<'a, SetOrigin<S>>
where S::Origin: IsUnset,

Required.

Source

pub fn predecessor( self, value: Address, ) -> IslGossipTelecommandBuilder<'a, SetPredecessor<S>>
where S::Predecessor: IsUnset,

Required.

Source

pub fn service_area_min( self, value: u8, ) -> IslGossipTelecommandBuilder<'a, SetServiceAreaMin<S>>
where S::ServiceAreaMin: IsUnset,

Required.

Source

pub fn service_area_max( self, value: u8, ) -> IslGossipTelecommandBuilder<'a, SetServiceAreaMax<S>>
where S::ServiceAreaMax: IsUnset,

Required.

Source

pub fn epoch(self, value: Epoch) -> IslGossipTelecommandBuilder<'a, SetEpoch<S>>
where S::Epoch: IsUnset,

Required.

Source

pub fn payload_len( self, value: usize, ) -> IslGossipTelecommandBuilder<'a, SetPayloadLen<S>>
where S::PayloadLen: IsUnset,

Required.

Auto Trait Implementations§

§

impl<'a, S> Freeze for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S> RefUnwindSafe for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S> Send for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S> Sync for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S> Unpin for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S> UnsafeUnpin for IslGossipTelecommandBuilder<'a, S>

§

impl<'a, S = Empty> !UnwindSafe for IslGossipTelecommandBuilder<'a, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.