pub struct ChannelDef {
pub name: String,
pub input_schema: Value,
pub incoming: Vec<(String, IncomingDef)>,
pub outgoing: Vec<(String, Value)>,
pub subscribe_handler: SubscriptionHandlerFn,
}Fields§
§name: String§input_schema: Value§incoming: Vec<(String, IncomingDef)>§outgoing: Vec<(String, Value)>§subscribe_handler: SubscriptionHandlerFnImplementations§
Source§impl ChannelDef
impl ChannelDef
Sourcepub fn expand(self) -> (Vec<ProcedureDef>, Vec<SubscriptionDef>, ChannelMeta)
pub fn expand(self) -> (Vec<ProcedureDef>, Vec<SubscriptionDef>, ChannelMeta)
Expand channel to Level 0 primitives (commands + subscription) and metadata.
Auto Trait Implementations§
impl Freeze for ChannelDef
impl !RefUnwindSafe for ChannelDef
impl Send for ChannelDef
impl Sync for ChannelDef
impl Unpin for ChannelDef
impl UnsafeUnpin for ChannelDef
impl !UnwindSafe for ChannelDef
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