Skip to main content

GossipBuilder

Struct GossipBuilder 

Source
pub struct GossipBuilder<N, const MTU: usize, const OUT: usize, S: State = Empty>
where N: Datalink,
{ /* private fields */ }
Expand description

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

Implementations§

Source§

impl<N, const MTU: usize, const OUT: usize, S: State> GossipBuilder<N, MTU, OUT, S>
where N: Datalink,

Source

pub fn build(self) -> Gossip<N, MTU, OUT>
where S: IsComplete,

Finishes building and performs the requested action.

Source

pub fn north(self, value: N) -> GossipBuilder<N, MTU, OUT, SetNorth<S>>
where S::North: IsUnset,

Required.

Source

pub fn south(self, value: N) -> GossipBuilder<N, MTU, OUT, SetSouth<S>>
where S::South: IsUnset,

Required.

Source

pub fn east(self, value: N) -> GossipBuilder<N, MTU, OUT, SetEast<S>>
where S::East: IsUnset,

Required.

Source

pub fn west(self, value: N) -> GossipBuilder<N, MTU, OUT, SetWest<S>>
where S::West: IsUnset,

Required.

Source

pub fn address( self, value: Address, ) -> GossipBuilder<N, MTU, OUT, SetAddress<S>>
where S::Address: IsUnset,

Required.

Source

pub fn torus(self, value: Torus) -> GossipBuilder<N, MTU, OUT, SetTorus<S>>
where S::Torus: IsUnset,

Required.

Source

pub fn apid(self, value: Apid) -> GossipBuilder<N, MTU, OUT, SetApid<S>>
where S::Apid: IsUnset,

Required.

Source

pub fn function_code( self, value: u8, ) -> GossipBuilder<N, MTU, OUT, SetFunctionCode<S>>
where S::FunctionCode: IsUnset,

Required.

Auto Trait Implementations§

§

impl<N, const MTU: usize, const OUT: usize, S> Freeze for GossipBuilder<N, MTU, OUT, S>
where N: Freeze,

§

impl<N, const MTU: usize, const OUT: usize, S> RefUnwindSafe for GossipBuilder<N, MTU, OUT, S>
where N: RefUnwindSafe,

§

impl<N, const MTU: usize, const OUT: usize, S> Send for GossipBuilder<N, MTU, OUT, S>
where N: Send,

§

impl<N, const MTU: usize, const OUT: usize, S> Sync for GossipBuilder<N, MTU, OUT, S>
where N: Sync,

§

impl<N, const MTU: usize, const OUT: usize, S> Unpin for GossipBuilder<N, MTU, OUT, S>
where N: Unpin,

§

impl<N, const MTU: usize, const OUT: usize, S> UnsafeUnpin for GossipBuilder<N, MTU, OUT, S>
where N: UnsafeUnpin,

§

impl<N, const MTU: usize, const OUT: usize, S> UnwindSafe for GossipBuilder<N, MTU, OUT, S>
where N: UnwindSafe,

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.