pub enum Message {
RegisterRequest {
request_id: u64,
directions: EndpointDirections,
updates_channel: u64,
},
AdoptRequest {
request_id: u64,
directions: EndpointDirections,
updates_channel: u64,
channel: u64,
mode: AdoptMode,
},
ConnectRequest {
request_id: u64,
from: EndpointId,
to: EndpointId,
reply_channel: u64,
},
ResponseRegister {
request_id: u64,
endpoint_id: EndpointId,
},
ResponseOk {
request_id: u64,
},
ResponseError {
request_id: u64,
message: String,
},
WiringUpdate {
endpoint_id: EndpointId,
inbound: Vec<WiringIngress>,
outbound: Vec<WiringEgress>,
},
}Expand description
Switchboard protocol message envelope.
Variants§
RegisterRequest
Register a new endpoint with the switchboard.
Fields
§
directions: EndpointDirectionsEndpoint directions.
AdoptRequest
Adopt an existing shared channel as a switchboard endpoint.
Fields
§
directions: EndpointDirectionsEndpoint directions.
ConnectRequest
Connect two endpoints.
ResponseRegister
Register response carrying the allocated endpoint id.
Fields
§
endpoint_id: EndpointIdEndpoint identifier assigned by the switchboard.
ResponseOk
Empty response acknowledging a request.
ResponseError
Error response for a request.
Fields
WiringUpdate
Wiring update for a single endpoint.
Fields
§
endpoint_id: EndpointIdEndpoint identifier receiving this update.
§
inbound: Vec<WiringIngress>Inbound connections.
§
outbound: Vec<WiringEgress>Outbound connections.
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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