Skip to content

Commit

Permalink
update docs of some generic type parameter (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
minghuaw authored Oct 3, 2024
1 parent 3485cfc commit a6e1118
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions fe2o3-amqp/src/connection/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ type SessionRelay = Arc<Sender<SessionIncomingItem>>;
/// A handle to the [`Connection`] event loop.
///
/// Dropping the handle will also stop the [`Connection`] event loop.
///
/// # Generic Parameters
///
/// - `R`: The type of the session listener. This will be `()` on the client side.
#[allow(dead_code)]
pub struct ConnectionHandle<R> {
/// Only change this value in `on_close` method
Expand Down
6 changes: 0 additions & 6 deletions fe2o3-amqp/src/link/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,6 @@ pub mod role {
}
}

// pub(crate) struct Transferable {
// input_handle: InputHandle,
// transfer: Transfer,
// payload: Payload,
// }

pub(crate) enum SenderAttachExchange {
Complete,
IncompleteUnsettled(Vec<(DeliveryTag, ResumingDelivery)>),
Expand Down
4 changes: 4 additions & 0 deletions fe2o3-amqp/src/session/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ pub const DEFAULT_WINDOW: Uint = 2048;
/// A handle to the [`Session`] event loop
///
/// Dropping the handle will also stop the [`Session`] event loop
///
/// # Generic Parameters
///
/// - `R`: The type of the listener for the link. This will be `()` on the client side.
#[allow(dead_code)]
pub struct SessionHandle<R> {
/// This value should only be changed in the `on_end` method
Expand Down

0 comments on commit a6e1118

Please sign in to comment.