Skip to main content

L2tpv3Builder

Struct L2tpv3Builder 

Source
pub struct L2tpv3Builder<S: State = Empty> { /* private fields */ }
Expand description

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

Implementations§

Source§

impl<S: State> L2tpv3Builder<S>

Source

pub fn build(self) -> L2tpv3
where S: IsComplete,

Finish building and return the requested object

Source

pub fn id(self, value: String) -> L2tpv3Builder<SetId<S>>
where S::Id: IsUnset,

Required.

Source

pub fn src(self, value: String) -> L2tpv3Builder<SetSrc<S>>
where S::Src: IsUnset,

Required.

Source

pub fn dst(self, value: String) -> L2tpv3Builder<SetDst<S>>
where S::Dst: IsUnset,

Required.

Source

pub fn srcport(self, value: u16) -> L2tpv3Builder<SetSrcport<S>>
where S::Srcport: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_srcport(self, value: Option<u16>) -> L2tpv3Builder<SetSrcport<S>>
where S::Srcport: IsUnset,

Optional (Some / Option setters).

Source

pub fn dstport(self, value: u16) -> L2tpv3Builder<SetDstport<S>>
where S::Dstport: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_dstport(self, value: Option<u16>) -> L2tpv3Builder<SetDstport<S>>
where S::Dstport: IsUnset,

Optional (Some / Option setters).

Source

pub fn rxsession(self, value: u32) -> L2tpv3Builder<SetRxsession<S>>
where S::Rxsession: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_rxsession( self, value: Option<u32>, ) -> L2tpv3Builder<SetRxsession<S>>
where S::Rxsession: IsUnset,

Optional (Some / Option setters).

Source

pub fn txsession(self, value: u32) -> L2tpv3Builder<SetTxsession<S>>
where S::Txsession: IsUnset,

Required.

Source

pub fn ipv6(self, value: OnOff) -> L2tpv3Builder<SetIpv6<S>>
where S::Ipv6: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_ipv6(self, value: Option<OnOff>) -> L2tpv3Builder<SetIpv6<S>>
where S::Ipv6: IsUnset,

Optional (Some / Option setters).

Source

pub fn udp(self, value: OnOff) -> L2tpv3Builder<SetUdp<S>>
where S::Udp: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_udp(self, value: Option<OnOff>) -> L2tpv3Builder<SetUdp<S>>
where S::Udp: IsUnset,

Optional (Some / Option setters).

Source

pub fn cookie64(self, value: OnOff) -> L2tpv3Builder<SetCookie64<S>>
where S::Cookie64: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_cookie64( self, value: Option<OnOff>, ) -> L2tpv3Builder<SetCookie64<S>>
where S::Cookie64: IsUnset,

Optional (Some / Option setters).

Source

pub fn counter(self, value: OnOff) -> L2tpv3Builder<SetCounter<S>>
where S::Counter: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_counter(self, value: Option<OnOff>) -> L2tpv3Builder<SetCounter<S>>
where S::Counter: IsUnset,

Optional (Some / Option setters).

Source

pub fn pincounter(self, value: OnOff) -> L2tpv3Builder<SetPincounter<S>>
where S::Pincounter: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_pincounter( self, value: Option<OnOff>, ) -> L2tpv3Builder<SetPincounter<S>>
where S::Pincounter: IsUnset,

Optional (Some / Option setters).

Source

pub fn txcookie(self, value: u64) -> L2tpv3Builder<SetTxcookie<S>>
where S::Txcookie: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_txcookie(self, value: Option<u64>) -> L2tpv3Builder<SetTxcookie<S>>
where S::Txcookie: IsUnset,

Optional (Some / Option setters).

Source

pub fn rxcookie(self, value: u64) -> L2tpv3Builder<SetRxcookie<S>>
where S::Rxcookie: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_rxcookie(self, value: Option<u64>) -> L2tpv3Builder<SetRxcookie<S>>
where S::Rxcookie: IsUnset,

Optional (Some / Option setters).

Source

pub fn offset(self, value: u32) -> L2tpv3Builder<SetOffset<S>>
where S::Offset: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_offset(self, value: Option<u32>) -> L2tpv3Builder<SetOffset<S>>
where S::Offset: IsUnset,

Optional (Some / Option setters).

Auto Trait Implementations§

§

impl<S> Freeze for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: Freeze,

§

impl<S> RefUnwindSafe for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: RefUnwindSafe,

§

impl<S> Send for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: Send,

§

impl<S> Sync for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: Sync,

§

impl<S> Unpin for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: Unpin,

§

impl<S> UnsafeUnpin for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: UnsafeUnpin,

§

impl<S> UnwindSafe for L2tpv3Builder<S>
where PhantomData<(fn() -> S, fn() -> PhantomData<L2tpv3>)>: 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

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

Source§

type Error = !

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.
Source§

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

Source§

fn vzip(self) -> V