pub struct HrmpChannelConfigBuilder<State> { /* private fields */ }
Expand description
HRMP channel configuration builder, used to build an HrmpChannelConfig
declaratively with fields validation.
Implementations§
source§impl HrmpChannelConfigBuilder<Initial>
impl HrmpChannelConfigBuilder<Initial>
pub fn new() -> Self
sourcepub fn with_sender(self, sender: ParaId) -> HrmpChannelConfigBuilder<WithSender>
pub fn with_sender(self, sender: ParaId) -> HrmpChannelConfigBuilder<WithSender>
Set the sending parachain ID.
source§impl HrmpChannelConfigBuilder<WithSender>
impl HrmpChannelConfigBuilder<WithSender>
sourcepub fn with_recipient(
self,
recipient: ParaId,
) -> HrmpChannelConfigBuilder<WithRecipient>
pub fn with_recipient( self, recipient: ParaId, ) -> HrmpChannelConfigBuilder<WithRecipient>
Set the receiving parachain ID.
source§impl HrmpChannelConfigBuilder<WithRecipient>
impl HrmpChannelConfigBuilder<WithRecipient>
sourcepub fn with_max_capacity(self, max_capacity: u32) -> Self
pub fn with_max_capacity(self, max_capacity: u32) -> Self
Set the max capacity of messages in the channel.
sourcepub fn with_max_message_size(self, max_message_size: u32) -> Self
pub fn with_max_message_size(self, max_message_size: u32) -> Self
Set the maximum size of a message in the channel.
pub fn build(self) -> HrmpChannelConfig
Trait Implementations§
Auto Trait Implementations§
impl<State> Freeze for HrmpChannelConfigBuilder<State>
impl<State> RefUnwindSafe for HrmpChannelConfigBuilder<State>where
State: RefUnwindSafe,
impl<State> Send for HrmpChannelConfigBuilder<State>where
State: Send,
impl<State> Sync for HrmpChannelConfigBuilder<State>where
State: Sync,
impl<State> Unpin for HrmpChannelConfigBuilder<State>where
State: Unpin,
impl<State> UnwindSafe for HrmpChannelConfigBuilder<State>where
State: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more