pub enum CloseableRequest {
Close {
responder: CloseableCloseResponder,
},
}
Expand description
Provides a means of synchronously closing a connection.
Variants§
Close
Terminates the connection.
After calling Close
, the client must not send any other requests.
Servers, after sending the status response, should close the connection regardless of status and without sending an epitaph.
Closing the client end of the channel should be semantically equivalent
to calling Close
without knowing when the close has completed or its
status.
Fields
§
responder: CloseableCloseResponder
Implementations§
Source§impl CloseableRequest
impl CloseableRequest
pub fn into_close(self) -> Option<CloseableCloseResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CloseableRequest
impl !RefUnwindSafe for CloseableRequest
impl Send for CloseableRequest
impl Sync for CloseableRequest
impl Unpin for CloseableRequest
impl !UnwindSafe for CloseableRequest
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