diff --git a/src/client.rs b/src/client.rs index 5bd93c7..aa08102 100644 --- a/src/client.rs +++ b/src/client.rs @@ -21,18 +21,21 @@ pub trait EndpointState: private::EndpointStateSealed {} /// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint has not been /// set and cannot be used. +#[derive(Clone, Debug)] pub struct EndpointNotSet; impl EndpointState for EndpointNotSet {} impl private::EndpointStateSealed for EndpointNotSet {} /// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint has been set /// and is ready to be used. +#[derive(Clone, Debug)] pub struct EndpointSet; impl EndpointState for EndpointSet {} impl private::EndpointStateSealed for EndpointSet {} /// [Typestate](https://cliffle.com/blog/rust-typestate/) indicating that an endpoint may have been /// set and can be used via fallible methods. +#[derive(Clone, Debug)] pub struct EndpointMaybeSet; impl EndpointState for EndpointMaybeSet {} impl private::EndpointStateSealed for EndpointMaybeSet {}