#[repr(u8)]pub enum ChannelBody<'payload> {
Item(ChannelItem<'payload>),
Close(ChannelClose<'payload>),
Reset(ChannelReset<'payload>),
GrantCredit(ChannelGrantCredit),
}Variants§
Item(ChannelItem<'payload>)
Send an item on a channel. Channels are not “opened”, they are created implicitly by calls.
Close(ChannelClose<'payload>)
Close a channel — sent by the sender of the channel when they’re gracefully done with a channel.
Reset(ChannelReset<'payload>)
Reset a channel — sent by the receiver of a channel when they would like the sender to please, stop sending items through.
GrantCredit(ChannelGrantCredit)
Grant additional send credit to a channel sender.
Trait Implementations§
Source§impl<'payload> Debug for ChannelBody<'payload>
impl<'payload> Debug for ChannelBody<'payload>
Auto Trait Implementations§
impl<'payload> Freeze for ChannelBody<'payload>
impl<'payload> RefUnwindSafe for ChannelBody<'payload>
impl<'payload> Send for ChannelBody<'payload>
impl<'payload> !Sync for ChannelBody<'payload>
impl<'payload> Unpin for ChannelBody<'payload>
impl<'payload> UnsafeUnpin for ChannelBody<'payload>
impl<'payload> UnwindSafe for ChannelBody<'payload>
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