Skip to content

Commit c9c5625

Browse files
bors[bot]lovasoa
andauthored
Merge #61
61: allow reading back the flags on a line handle r=ryankurte a=lovasoa Currently, one has to store the flags separately if one wants to know the flags associated with a handle. Co-authored-by: lovasoa <[email protected]>
2 parents 48a3948 + 762e471 commit c9c5625

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,11 @@ impl LineHandle {
692692
pub fn line(&self) -> &Line {
693693
&self.line
694694
}
695+
696+
/// Get the flags with which this handle was created
697+
pub fn flags(&self) -> LineRequestFlags {
698+
self.flags
699+
}
695700
}
696701

697702
impl AsRawFd for LineHandle {

0 commit comments

Comments
 (0)