pub struct ChannelDecl {
pub name: Ident,
pub provider: Ident,
pub workspace: Option<Ident>,
pub destination: Option<StringLiteral>,
pub span: SourceSpan,
}Expand description
channel <name> { provider <p> [workspace <w>] [destination "<d>"] }
(std.messaging): a named communication route through a provider. The bare
channel construct shape is reserved by the platform for std.messaging
(spec/messaging.md), so third-party packages cannot author channel-like
semantics with weaker guarantees. Lowers to a metadata_only declaration
(like queue); the runtime messaging provider is later-stage work.
Fields§
§name: Ident§provider: Ident§workspace: Option<Ident>§destination: Option<StringLiteral>§span: SourceSpanTrait Implementations§
Source§impl Clone for ChannelDecl
impl Clone for ChannelDecl
Source§fn clone(&self) -> ChannelDecl
fn clone(&self) -> ChannelDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChannelDecl
impl Debug for ChannelDecl
impl Eq for ChannelDecl
Source§impl PartialEq for ChannelDecl
impl PartialEq for ChannelDecl
impl StructuralPartialEq for ChannelDecl
Auto Trait Implementations§
impl Freeze for ChannelDecl
impl RefUnwindSafe for ChannelDecl
impl Send for ChannelDecl
impl Sync for ChannelDecl
impl Unpin for ChannelDecl
impl UnsafeUnpin for ChannelDecl
impl UnwindSafe for ChannelDecl
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