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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more