pub enum Packet {
Message {
channel_id: ChannelId,
msg: Message,
},
NewChannelIdRequest {
return_sender: Sender<ChannelId>,
},
AddJoinPatternRequest {
join_pattern: JoinPattern,
},
ShutDownRequest,
}
Expand description
Standardized packet to be used to send messages of various types on the channels of a Junction.
Variants§
Message
General message send from channel identified by channel_id
.
NewChannelIdRequest
Request a new channel ID from the Junction so a new channel can be
constructed. New ID will be sent back through return_sender
.
AddJoinPatternRequest
Request adding a new Join Pattern to the Junction.
Fields
§
join_pattern: JoinPattern
ShutDownRequest
Request the internal control thread managing the Message
s to shut down.
Auto Trait Implementations§
impl Freeze for Packet
impl !RefUnwindSafe for Packet
impl Send for Packet
impl !Sync for Packet
impl Unpin for Packet
impl !UnwindSafe for Packet
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