pub enum Request {
Discover {
responder: DiscoverResponder,
},
GetCapabilities {
stream_id: StreamEndpointId,
responder: GetCapabilitiesResponder,
},
GetAllCapabilities {
stream_id: StreamEndpointId,
responder: GetCapabilitiesResponder,
},
SetConfiguration {
local_stream_id: StreamEndpointId,
remote_stream_id: StreamEndpointId,
capabilities: Vec<ServiceCapability>,
responder: ConfigureResponder,
},
GetConfiguration {
stream_id: StreamEndpointId,
responder: GetCapabilitiesResponder,
},
Reconfigure {
local_stream_id: StreamEndpointId,
capabilities: Vec<ServiceCapability>,
responder: ConfigureResponder,
},
Open {
stream_id: StreamEndpointId,
responder: SimpleResponder,
},
Start {
stream_ids: Vec<StreamEndpointId>,
responder: StreamResponder,
},
Close {
stream_id: StreamEndpointId,
responder: SimpleResponder,
},
Suspend {
stream_ids: Vec<StreamEndpointId>,
responder: StreamResponder,
},
Abort {
stream_id: StreamEndpointId,
responder: SimpleResponder,
},
DelayReport {
stream_id: StreamEndpointId,
delay: u16,
responder: SimpleResponder,
},
}
Expand description
A request from the connected peer. Each variant of this includes a responder which implements two functions:
- send(…) will send a response with the information provided.
- reject(ErrorCode) will send an reject response with the given error code.
Variants§
Discover
Fields
§
responder: DiscoverResponder
GetCapabilities
GetAllCapabilities
SetConfiguration
Fields
§
local_stream_id: StreamEndpointId
§
remote_stream_id: StreamEndpointId
§
capabilities: Vec<ServiceCapability>
§
responder: ConfigureResponder
GetConfiguration
Reconfigure
Fields
§
local_stream_id: StreamEndpointId
§
capabilities: Vec<ServiceCapability>
§
responder: ConfigureResponder
Open
Start
Close
Suspend
Abort
DelayReport
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl !RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl !UnwindSafe for Request
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