Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-rs

ControlEvents.shutdown

End the connection and report how it went.

Source and package
Qualified name
libtmux::control::ControlEvents::shutdown
Module
control
Declared in
ControlEvents
Package
libtmux
Source
crates/libtmux/src/control.rs
pub async fn shutdown(mut self) -> Result<(), Error>
Completion
Returns a future that runs when awaited.signature · control.rs:1273
Errors
Returns a connection or cleanup error not already delivered by the stream. Caller-requested closure succeeds when cleanup succeeds.doc comment · :1271
Cleanup
Unread notifications are discarded so cleanup cannot wait on a full buffer.doc comment · :1264

Description

Stops the connection even while command senders remain alive. Unread notifications are discarded so cleanup cannot wait on a full buffer. If the stream already delivered its terminal error, this succeeds; that error is not delivered twice.

Errors

Returns a connection or cleanup error not already delivered by the stream. Caller-requested closure succeeds when cleanup succeeds.

Recorded calls

source calls
No call edges in the Rust model.

The Rust reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls control.ControlEvents.shutdown.

Guides

task material

Pages that discuss shutdown.

Esc
Search in

Type to search.

Reference previewOpen reference