pub struct ServiceDisconnect(/* private fields */);Expand description
Notification that the server is closing the connection.
Implementations§
Source§impl ServiceDisconnect
impl ServiceDisconnect
Sourcepub fn reason(&self) -> ServiceDisconnectReason
pub fn reason(&self) -> ServiceDisconnectReason
Returns why the connection is being closed.
Sourcepub fn ack<F>(self) -> ControlAck<F>
pub fn ack<F>(self) -> ControlAck<F>
Acknowledges the notification and closes the connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceDisconnect
impl RefUnwindSafe for ServiceDisconnect
impl Send for ServiceDisconnect
impl Sync for ServiceDisconnect
impl Unpin for ServiceDisconnect
impl UnsafeUnpin for ServiceDisconnect
impl UnwindSafe for ServiceDisconnect
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