Skip to content

Commit

Permalink
[transport] improve docs for is_stateful()
Browse files Browse the repository at this point in the history
relates to #110
  • Loading branch information
Byron committed Jun 26, 2021
1 parent 2f01e46 commit 22f7e67
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion git-transport/src/client/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ pub trait TransportWithoutIO {

/// Returns true if the transport is inherently stateful, or false otherwise.
/// Not being stateful implies that certain information has to be resent on each 'turn'
/// of the fetch negotiation.
/// of the fetch negotiation when using protocol version 1.
///
/// # Implementation Details
///
/// This answer should not be based on the [Protocol] itself, which might enforce stateless
/// interactions despite the connections staying intact which might imply statefulness.
///
/// This means that HTTP transports generally operate in a stateless fashion independent of the
/// protocol version.
fn is_stateful(&self) -> bool;
}

Expand Down

0 comments on commit 22f7e67

Please sign in to comment.