File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -21,18 +21,21 @@ pub trait EndpointState: private::EndpointStateSealed {}
21
21
22
22
/// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint has not been
23
23
/// set and cannot be used.
24
+ #[ derive( Clone , Debug ) ]
24
25
pub struct EndpointNotSet ;
25
26
impl EndpointState for EndpointNotSet { }
26
27
impl private:: EndpointStateSealed for EndpointNotSet { }
27
28
28
29
/// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint has been set
29
30
/// and is ready to be used.
31
+ #[ derive( Clone , Debug ) ]
30
32
pub struct EndpointSet ;
31
33
impl EndpointState for EndpointSet { }
32
34
impl private:: EndpointStateSealed for EndpointSet { }
33
35
34
36
/// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint may have been
35
37
/// set and can be used via fallible methods.
38
+ #[ derive( Clone , Debug ) ]
36
39
pub struct EndpointMaybeSet ;
37
40
impl EndpointState for EndpointMaybeSet { }
38
41
impl private:: EndpointStateSealed for EndpointMaybeSet { }
You can’t perform that action at this time.
0 commit comments